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)
-
- (Object) clear_associations
included
from Save
Removes all cached associations.
-
- (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.
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.
- (Object) save_associations Originally defined in module Save
Saves associations Takes into account inlining, collections, and id setting on the parent resource.