Module: ZendeskAPI::Create
- Includes:
 - Save
 
- Included in:
 - App::Upload, CreateResource, OrganizationMembership, OrganizationSubscription, Resource, Topic::TopicComment, Upload
 
- Defined in:
 - lib/zendesk_api/actions.rb
 
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- 
  
    
      #clear_associations  ⇒ Object 
    
    
  
  
    
      included
      from Save
    
  
  
  
  
  
  
  
  
    
Removes all cached associations.
 - #handle_response(response) ⇒ Object included from ResponseHandler
 - 
  
    
      #save(options = {}, &block)  ⇒ Object 
    
    
  
  
    
      included
      from Save
    
  
  
  
  
  
  
  
  
    
Saves, returning false if it fails and attaching the errors.
 - 
  
    
      #save!(options = {})  ⇒ Boolean 
    
    
  
  
    
      included
      from Save
    
  
  
  
  
  
  
  
  
    
If this resource hasn't been deleted, then create or save it.
 - 
  
    
      #save_associations  ⇒ Object 
    
    
  
  
    
      included
      from Save
    
  
  
  
  
  
  
  
  
    
Saves associations Takes into account inlining, collections, and id setting on the parent resource.
 
Instance Method Details
#clear_associations ⇒ Object Originally defined in module Save
Removes all cached associations
#handle_response(response) ⇒ Object Originally defined in module ResponseHandler
#save(options = {}, &block) ⇒ Object Originally defined in module Save
Saves, returning false if it fails and attaching the errors
#save!(options = {}) ⇒ Boolean 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.
#save_associations ⇒ Object Originally defined in module Save
Saves associations Takes into account inlining, collections, and id setting on the parent resource.