Class: Kickboxer::Person
- Inherits:
-
Object
- Object
- Kickboxer::Person
- Defined in:
- lib/kickboxer/person.rb
Class Method Summary collapse
-
.find_by_email(email_address) ⇒ Object
Public: look up a person by email address.
-
.find_by_facebook(username) ⇒ Object
Public: look up a person by facebook username.
-
.find_by_phone_number(phone_number) ⇒ Object
Public: look up a person by phone number.
-
.find_by_twitter(username) ⇒ Object
Public: look up a person by twitter username.
Class Method Details
.find_by_email(email_address) ⇒ Object
Public: look up a person by email address
email_address - a string containing the email address
Example
response = Kickboxer::Person.find_by_email('[email protected]')
response.contactInfo.familyName
# => 'Lorang'
response.contactInfo.givenName
# => 'Bart'
15 16 17 |
# File 'lib/kickboxer/person.rb', line 15 def self.find_by_email(email_address) Request.run('person', email: email_address) end |
.find_by_facebook(username) ⇒ Object
63 64 65 |
# File 'lib/kickboxer/person.rb', line 63 def self.find_by_facebook(username) Request.run('person', facebookUsername: username) end |
.find_by_phone_number(phone_number) ⇒ Object
31 32 33 |
# File 'lib/kickboxer/person.rb', line 31 def self.find_by_phone_number(phone_number) Request.run('person', phone: phone_number) end |