Module: ZendeskAPI::Create

Includes:
Save
Included in:
CreateResource, Resource, Topic::TopicComment, Upload
Defined in:
lib/zendesk_api/actions.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary (collapse)

Instance Method Details

- (Object) clear_associations Originally defined in module Save

Removes all cached associations

- (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.

Returns:

  • (Boolean)

    Success?

- (Object) save_associations Originally defined in module Save

Saves associations Takes into account inlining, collections, and id setting on the parent resource.