Class: ZendeskAPI::AppInstallation

Inherits:
Resource show all
Defined in:
lib/zendesk_api/resources.rb

Instance Attribute Summary

Attributes inherited from DataResource

#error, #error_message

Attributes inherited from Data

#association, #attributes, #errors, #response

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Destroy

#destroy, #destroy!, #destroyed?, included

Methods included from Update

included

Methods included from Save

#clear_associations, #save, #save!, #save_associations

Methods included from Create

included

Methods included from Read

included, #reload!

Methods included from Sideloading

included, #set_includes

Methods included from Verbs

#any, #delete, #post, #put

Methods inherited from Data

#==, #id, inherited, #initialize, #loaded_associations, #method_missing, namespace, new_from_response, #new_record?, #path, resource_name, resource_path, subclasses, #to_json, #to_s

Methods included from Associations

included, #wrap_resource

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_nameObject


836
837
838
# File 'lib/zendesk_api/resources.rb', line 836

def self.singular_resource_name
  "installation"
end

Instance Method Details

#attributes_for_saveObject

Don't nest attributes


841
842
843
# File 'lib/zendesk_api/resources.rb', line 841

def attributes_for_save
  attributes.changes
end

#handle_response(response) ⇒ Object


845
846
847
# File 'lib/zendesk_api/resources.rb', line 845

def handle_response(response)
  @attributes.replace(response.body) if response.body
end