Class: FaithTeams::API::V2::Entity::Person
- Inherits:
-
Base
- Object
- Base
- FaithTeams::API::V2::Entity::Person
show all
- Defined in:
- lib/faithteams/api/v2/entity/person.rb
Overview
Wraps an faithteams person object
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #saved?, #to_h
Instance Method Details
#email ⇒ String?
10
11
12
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 10
def email
read_attribute(:homeEmail).presence
end
|
#first_name ⇒ String?
15
16
17
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 15
def first_name
read_attribute(:firstName).presence
end
|
#home_address_city ⇒ String?
20
21
22
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 20
def home_address_city
read_attribute(:homeAddressCity).presence
end
|
#home_address_country ⇒ String?
25
26
27
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 25
def home_address_country
read_attribute(:homeAddressCountry).presence
end
|
#home_address_state ⇒ String?
30
31
32
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 30
def home_address_state
read_attribute(:homeAddressState).presence
end
|
#home_address_street_line1 ⇒ String?
35
36
37
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 35
def home_address_street_line1
read_attribute(:homeAddressStreetLine1).presence
end
|
#home_address_street_line2 ⇒ String?
40
41
42
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 40
def home_address_street_line2
read_attribute(:homeAddressStreetLine2).presence
end
|
#home_address_zip ⇒ String?
45
46
47
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 45
def home_address_zip
read_attribute(:homeAddressZip).presence
end
|
#home_phone_number ⇒ String?
50
51
52
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 50
def home_phone_number
read_attribute(:homePhoneNumber).presence
end
|
#id ⇒ Integer?
55
56
57
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 55
def id
read_attribute(:personId)
end
|
#last_name ⇒ String?
60
61
62
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 60
def last_name
read_attribute(:lastName).presence
end
|
#org_id ⇒ Integer?
65
66
67
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 65
def org_id
read_attribute(:orgId)
end
|
#status ⇒ String?
Returns "A" for active, "I" for inactive.
70
71
72
|
# File 'lib/faithteams/api/v2/entity/person.rb', line 70
def status
read_attribute(:status).presence
end
|