Class: Podio::Contact
- Inherits:
-
Profile
- Object
- ActivePodio::Base
- Profile
- Podio::Contact
- Includes:
- ActivePodio::Updatable
- Defined in:
- lib/podio/models/contact.rb
Overview
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ActivePodio::Updatable
#remove_nil_values, #update_attributes
Methods inherited from Profile
all, create_space_contact, delete_contact, find, find_all_for_linked_account, find_all_for_org, find_all_for_space, find_all_for_users, find_for_org, find_for_user, skills, totals_by_org, totals_by_org_and_space, totals_by_space_v2, update_contact, vcard
Methods inherited from ActivePodio::Base
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, has_many, has_one, #hash, #initialize, #initialize_attributes, klass_from_string, list, member, #new_record?, output_attribute_as_json, #parent_model, #persisted?, property, #to_param
Constructor Details
This class inherits a constructor from ActivePodio::Base
Class Method Details
.find_external(linked_acc_id, external_contact_id) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/podio/models/contact.rb', line 24 def find_external(linked_acc_id, external_contact_id) member Podio.connection.post { |req| req.url "/contact/linked_account/#{linked_acc_id}" req.body = { :external_contact_id => external_contact_id } }.body end |
Instance Method Details
#update ⇒ Object
19 20 21 |
# File 'lib/podio/models/contact.rb', line 19 def update self.class.update_contact(self.profile_id, self.attributes) end |