Class: ZendeskAPI::Upload
- Inherits:
-
Data
- Object
- Data
- ZendeskAPI::Upload
- Includes:
- Create, Destroy
- Defined in:
- lib/zendesk_api/resources.rb
Instance Attribute Summary (collapse)
-
- (ZendeskAPI::Association) association
inherited
from Data
The association.
-
- (Hash) attributes
(also: #to_param)
inherited
from Data
readonly
The resource's attributes.
-
- (Array) errors
inherited
from Data
The last received errors.
-
- (Object) response
inherited
from Data
Place to dump the last response.
Instance Method Summary (collapse)
-
- (ZendeskAPI::Attachment) attachments(options = {})
The associated object.
-
- (ZendeskAPI::Attachment) attachments=(value)
The associated object.
-
- (Object) clear_associations
included
from Save
Removes all cached associations.
- - (Object) destroy included from Destroy
-
- (Boolean) destroy!
included
from Destroy
If this resource hasn't already been deleted, then do so.
-
- (Boolean) destroyed?
included
from Destroy
Has this object been deleted?.
- - (Object) id
-
- (Object) save(options = {})
included
from Save
Saves, returning false if it fails and attaching the errors.
-
- (Boolean) save!(options = {})
included
from Save
If this resource hasn't been deleted, then create or save it.
-
- (Object) save_associations
included
from Save
Saves associations Takes into account inlining, collections, and id setting on the parent 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
Instance Attribute Details
- (ZendeskAPI::Association) association Originally defined in class Data
The association
- (Hash) attributes (readonly) Also known as: to_param Originally defined in class Data
The resource's attributes
- (Array) errors Originally defined in class Data
The last received errors
- (Object) response Originally defined in class Data
Place to dump the last response
Instance Method Details
- (ZendeskAPI::Attachment) attachments(options = {})
The associated object
57 |
# File 'lib/zendesk_api/resources.rb', line 57 has_many Attachment |
- (ZendeskAPI::Attachment) attachments=(value)
The associated object
57 |
# File 'lib/zendesk_api/resources.rb', line 57 has_many Attachment |
- (Object) clear_associations Originally defined in module Save
Removes all cached associations
- (Object) destroy Originally defined in module Destroy
- (Boolean) destroy! Originally defined in module Destroy
If this resource hasn't already been deleted, then do so.
- (Boolean) destroyed? Originally defined in module Destroy
Has this object been deleted?
- (Object) id
53 |
# File 'lib/zendesk_api/resources.rb', line 53 def id; token; end |
- (Object) save(options = {}) Originally defined in module Save
Saves, returning false if it fails and attaching the errors
- (Boolean) save!(options = {}) Originally defined in module Save
If this resource hasn't been deleted, then create or save it. Executes a POST if it is a Data#new_record?, otherwise a PUT. Merges returned attributes on success.
- (Object) save_associations Originally defined in module Save
Saves associations Takes into account inlining, collections, and id setting on the parent resource.