Class: BloomApi::OrganizationOfficial
- Inherits:
-
Object
- Object
- BloomApi::OrganizationOfficial
- Defined in:
- lib/bloom_api/organization_official.rb
Overview
A class representing an organization official
Instance Method Summary collapse
-
#credential ⇒ String
The official’s professional credential.
-
#first_name ⇒ String
The official’s first name.
-
#initialize(raw_official) ⇒ OrganizationOfficial
constructor
Creates a new OrganizationOfficial.
-
#last_name ⇒ String
The official’s last name.
-
#middle_name ⇒ String
The official’s middle name.
-
#name_prefix ⇒ String
The official’s name prefix.
-
#name_suffix ⇒ String
The official’s name suffix.
-
#phone ⇒ String
The official’s phone number.
-
#title ⇒ String
The official’s professional title.
Constructor Details
#initialize(raw_official) ⇒ OrganizationOfficial
Creates a new OrganizationOfficial
9 10 11 |
# File 'lib/bloom_api/organization_official.rb', line 9 def initialize(raw_official) @raw_official = raw_official end |
Instance Method Details
#credential ⇒ String
Returns the official’s professional credential.
14 15 16 |
# File 'lib/bloom_api/organization_official.rb', line 14 def credential @raw_official['credential'] end |
#first_name ⇒ String
Returns the official’s first name.
19 20 21 |
# File 'lib/bloom_api/organization_official.rb', line 19 def first_name @raw_official['first_name'] end |
#last_name ⇒ String
Returns the official’s last name.
24 25 26 |
# File 'lib/bloom_api/organization_official.rb', line 24 def last_name @raw_official['last_name'] end |
#middle_name ⇒ String
Returns the official’s middle name.
29 30 31 |
# File 'lib/bloom_api/organization_official.rb', line 29 def middle_name @raw_official['middle_name'] end |
#name_prefix ⇒ String
Returns the official’s name prefix.
34 35 36 |
# File 'lib/bloom_api/organization_official.rb', line 34 def name_prefix @raw_official['name_prefix'] end |
#name_suffix ⇒ String
Returns the official’s name suffix.
39 40 41 |
# File 'lib/bloom_api/organization_official.rb', line 39 def name_suffix @raw_official['name_suffix'] end |
#phone ⇒ String
Returns the official’s phone number.
44 45 46 |
# File 'lib/bloom_api/organization_official.rb', line 44 def phone @raw_official['phone'] end |
#title ⇒ String
Returns the official’s professional title.
49 50 51 |
# File 'lib/bloom_api/organization_official.rb', line 49 def title @raw_official['title'] end |