Class: ZendeskAPI::CreateResource
- Inherits:
 - 
      DataResource
      
        
- Object
 - Data
 - DataResource
 - ZendeskAPI::CreateResource
 
 
- Includes:
 - Create
 
- Defined in:
 - lib/zendesk_api/resource.rb
 
Overview
Represents a resource that can only POST
Direct Known Subclasses
AnonymousRequest, AppNotification, Ticket::SatisfactionRating, Voice::Agent::Ticket, Voice::Ticket
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.
 
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 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.