Class: ProsperWorks::Person
- Inherits:
-
BaseEntity
- Object
- Base
- BaseEntity
- ProsperWorks::Person
- Defined in:
- lib/prosperworks/person.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#company_id ⇒ Object
Returns the value of attribute company_id.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#contact_type_id ⇒ Object
Returns the value of attribute contact_type_id.
-
#date_last_contacted ⇒ Object
Returns the value of attribute date_last_contacted.
-
#emails ⇒ Object
Returns the value of attribute emails.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#interaction_count ⇒ Object
Returns the value of attribute interaction_count.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#middle_name ⇒ Object
Returns the value of attribute middle_name.
-
#phone_numbers ⇒ Object
Returns the value of attribute phone_numbers.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#socials ⇒ Object
Returns the value of attribute socials.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
-
#title ⇒ Object
Returns the value of attribute title.
-
#websites ⇒ Object
Returns the value of attribute websites.
Attributes inherited from BaseEntity
#assignee_id, #custom_fields, #date_modified, #details, #name, #tags
Attributes inherited from Base
Class Method Summary collapse
Methods included from ApiOperations::Create
Methods included from ApiOperations::Connect
#get_uri, #handle_multiple_response, #handle_response, #send_request
Methods included from ApiOperations::Delete
#delete, #handle_delete_response
Methods included from ApiOperations::Find
Methods included from ApiOperations::Update
Methods included from ApiOperations::Search
Methods inherited from Base
client, #initialize, #set_attributes
Methods included from SerializeEntity
Constructor Details
This class inherits a constructor from ProsperWorks::Base
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def address @address end |
#company_id ⇒ Object
Returns the value of attribute company_id.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def company_id @company_id end |
#company_name ⇒ Object
Returns the value of attribute company_name.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def company_name @company_name end |
#contact_type_id ⇒ Object
Returns the value of attribute contact_type_id.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def contact_type_id @contact_type_id end |
#date_last_contacted ⇒ Object
Returns the value of attribute date_last_contacted.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def date_last_contacted @date_last_contacted end |
#emails ⇒ Object
Returns the value of attribute emails.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def emails @emails end |
#first_name ⇒ Object
Returns the value of attribute first_name.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def first_name @first_name end |
#interaction_count ⇒ Object
Returns the value of attribute interaction_count.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def interaction_count @interaction_count end |
#last_name ⇒ Object
Returns the value of attribute last_name.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def last_name @last_name end |
#middle_name ⇒ Object
Returns the value of attribute middle_name.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def middle_name @middle_name end |
#phone_numbers ⇒ Object
Returns the value of attribute phone_numbers.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def phone_numbers @phone_numbers end |
#prefix ⇒ Object
Returns the value of attribute prefix.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def prefix @prefix end |
#socials ⇒ Object
Returns the value of attribute socials.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def end |
#suffix ⇒ Object
Returns the value of attribute suffix.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def suffix @suffix end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def title @title end |
#websites ⇒ Object
Returns the value of attribute websites.
4 5 6 |
# File 'lib/prosperworks/person.rb', line 4 def websites @websites end |
Class Method Details
.api_name ⇒ Object
23 24 25 |
# File 'lib/prosperworks/person.rb', line 23 def self.api_name "people" end |
.find_by_email(email) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/prosperworks/person.rb', line 27 def self.find_by_email(email) uri = get_uri(api_name, 'fetch_by_email') response = send_request("post", uri, email: email) handle_response(new, response) end |