Class: FaithTeams::API::V2::Entity::Person

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from FaithTeams::API::V2::Entity::Base

Instance Method Details

#emailString?

Returns:

  • (String, nil)


10
11
12
# File 'lib/faithteams/api/v2/entity/person.rb', line 10

def email
  read_attribute(:homeEmail).presence
end

#first_nameString?

Returns:

  • (String, nil)


15
16
17
# File 'lib/faithteams/api/v2/entity/person.rb', line 15

def first_name
  read_attribute(:firstName).presence
end

#home_address_cityString?

Returns:

  • (String, nil)


20
21
22
# File 'lib/faithteams/api/v2/entity/person.rb', line 20

def home_address_city
  read_attribute(:homeAddressCity).presence
end

#home_address_countryString?

Returns:

  • (String, nil)


25
26
27
# File 'lib/faithteams/api/v2/entity/person.rb', line 25

def home_address_country
  read_attribute(:homeAddressCountry).presence
end

#home_address_stateString?

Returns:

  • (String, nil)


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_line1String?

Returns:

  • (String, nil)


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_line2String?

Returns:

  • (String, nil)


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_zipString?

Returns:

  • (String, nil)


45
46
47
# File 'lib/faithteams/api/v2/entity/person.rb', line 45

def home_address_zip
  read_attribute(:homeAddressZip).presence
end

#home_phone_numberString?

Returns:

  • (String, nil)


50
51
52
# File 'lib/faithteams/api/v2/entity/person.rb', line 50

def home_phone_number
  read_attribute(:homePhoneNumber).presence
end

#idInteger?

Returns:

  • (Integer, nil)


55
56
57
# File 'lib/faithteams/api/v2/entity/person.rb', line 55

def id
  read_attribute(:personId)
end

#last_nameString?

Returns:

  • (String, nil)


60
61
62
# File 'lib/faithteams/api/v2/entity/person.rb', line 60

def last_name
  read_attribute(:lastName).presence
end

#org_idInteger?

Returns:

  • (Integer, nil)


65
66
67
# File 'lib/faithteams/api/v2/entity/person.rb', line 65

def org_id
  read_attribute(:orgId)
end

#statusString?

Returns "A" for active, "I" for inactive.

Returns:

  • (String, nil)

    "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