Class: Podio::SpaceContact
- Inherits:
-
Profile
- Object
- ActivePodio::Base
- Profile
- Podio::SpaceContact
- Includes:
- ActivePodio::Updatable
- Defined in:
- lib/podio/models/space_contact.rb
Overview
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
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
Instance Method Details
#create ⇒ Object
11 12 13 |
# File 'lib/podio/models/space_contact.rb', line 11 def create self.profile_id = self.class.create_space_contact(self.space_id, self.attributes)['profile_id'] end |
#destroy ⇒ Object
19 20 21 |
# File 'lib/podio/models/space_contact.rb', line 19 def destroy self.class.delete_contact(self.profile_id) end |
#update ⇒ Object
15 16 17 |
# File 'lib/podio/models/space_contact.rb', line 15 def update self.class.update_contact(self.profile_id, self.attributes) end |