Class: ZendeskAPI::SingularResource
- Inherits:
-
Resource
- Object
- Data
- DataResource
- Resource
- ZendeskAPI::SingularResource
- Defined in:
- lib/zendesk_api/resource.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from DataResource
Attributes inherited from Data
#association, #attributes, #errors, #response
Instance Method Summary collapse
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 ResponseHandler
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?, singular_resource_name, 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
Instance Method Details
#attributes_for_save ⇒ Object
190 191 192 |
# File 'lib/zendesk_api/resource.rb', line 190 def attributes_for_save { self.class.resource_name.to_sym => attributes.changes } end |