Class: BloomApi::OrganizationOfficial

Inherits:
Object
  • Object
show all
Defined in:
lib/bloom_api/organization_official.rb

Overview

A class representing an organization official

Instance Method Summary collapse

Constructor Details

#initialize(raw_official) ⇒ OrganizationOfficial

Creates a new OrganizationOfficial

Parameters:

  • raw_official (Hash)

    A hash representation of the organization_official object available in the BloomApi


9
10
11
# File 'lib/bloom_api/organization_official.rb', line 9

def initialize(raw_official)
  @raw_official = raw_official
end

Instance Method Details

#credentialString

Returns the official's professional credential.

Returns:

  • (String)

    the official's professional credential


14
15
16
# File 'lib/bloom_api/organization_official.rb', line 14

def credential
  @raw_official['credential']
end

#first_nameString

Returns the official's first name.

Returns:

  • (String)

    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_nameString

Returns the official's last name.

Returns:

  • (String)

    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_nameString

Returns the official's middle name.

Returns:

  • (String)

    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_prefixString

Returns the official's name prefix.

Returns:

  • (String)

    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_suffixString

Returns the official's name suffix.

Returns:

  • (String)

    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

#phoneString

Returns the official's phone number.

Returns:

  • (String)

    the official's phone number


44
45
46
# File 'lib/bloom_api/organization_official.rb', line 44

def phone
  @raw_official['phone']
end

#titleString

Returns the official's professional title.

Returns:

  • (String)

    the official's professional title


49
50
51
# File 'lib/bloom_api/organization_official.rb', line 49

def title
  @raw_official['title']
end