Class: ZendeskAPI::AppInstallation
- Inherits:
-
Resource
- Object
- Data
- DataResource
- Resource
- ZendeskAPI::AppInstallation
- Defined in:
- lib/zendesk_api/resources.rb
Instance Attribute Summary
Attributes inherited from DataResource
Attributes inherited from Data
#association, #attributes, #errors, #response
Class Method Summary collapse
Instance Method Summary collapse
-
#attributes_for_save ⇒ Object
Don’t nest attributes.
- #handle_response(response) ⇒ Object
Methods included from Destroy
#destroy, #destroy!, #destroyed?, included
Methods included from Update
Methods included from Save
#clear_associations, #save, #save!, #save_associations
Methods included from Create
Methods included from Read
Methods included from Sideloading
Methods included from Verbs
Methods inherited from Data
#==, #id, inherited, #initialize, #loaded_associations, #method_missing, namespace, new_from_response, #new_record?, #path, resource_name, resource_path, #respond_to_missing?, subclasses, #to_json, #to_s
Methods included from Associations
Constructor Details
This class inherits a constructor from ZendeskAPI::Data
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ZendeskAPI::Data
Class Method Details
.singular_resource_name ⇒ Object
828 829 830 |
# File 'lib/zendesk_api/resources.rb', line 828 def self.singular_resource_name "installation" end |
Instance Method Details
#attributes_for_save ⇒ Object
Don’t nest attributes
833 834 835 |
# File 'lib/zendesk_api/resources.rb', line 833 def attributes_for_save attributes.changes end |
#handle_response(response) ⇒ Object
837 838 839 |
# File 'lib/zendesk_api/resources.rb', line 837 def handle_response(response) @attributes.replace(response.body) if response.body end |