Class: Podio::SpaceContact
- Inherits:
-
Profile
- Object
- ActivePodio::Base
- Profile
- Podio::SpaceContact
- Includes:
- ActivePodio::Updatable
- Defined in:
- lib/podio/models/space_contact.rb
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
#attributes, #error_code, #error_message, #error_parameters, #error_propagate
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_connection, find_all_for_connection_type, find_all_for_linked_account, find_all_for_org, find_all_for_space, find_for_org, find_for_user, skills, top, top_for_org, top_for_personal, top_for_space, totals_by_org, totals_by_org_and_space, totals_by_space, totals_by_space_v2, update_contact, vcard
Methods inherited from ActivePodio::Base
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, handle_api_errors_for, has_many, has_one, #hash, #initialize, #initialize_attributes, list, member, #new_record?, output_attribute_as_json, #persisted?, property, #to_param
Constructor Details
This class inherits a constructor from ActivePodio::Base
Instance Method Details
#create ⇒ Object
10 11 12 |
# File 'lib/podio/models/space_contact.rb', line 10 def create self.profile_id = self.class.create_space_contact(self.space_id, self.attributes)['profile_id'] end |
#destroy ⇒ Object
18 19 20 |
# File 'lib/podio/models/space_contact.rb', line 18 def destroy self.class.delete_contact(self.profile_id) end |
#update ⇒ Object
14 15 16 |
# File 'lib/podio/models/space_contact.rb', line 14 def update self.class.update_contact(self.profile_id, self.attributes) end |