Class: ReamazeAPI::Contact
- Defined in:
- lib/reamaze_api/contact.rb
Instance Method Summary collapse
- 
  
    
      #all(params = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Retrieve contacts. 
- 
  
    
      #create(params)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Create a new contact. 
- 
  
    
      #update(slug, params)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update an existing contact. 
Methods inherited from Resource
Constructor Details
This class inherits a constructor from ReamazeAPI::Resource
Instance Method Details
#all(params = {}) ⇒ Object
Retrieve contacts.
| 14 15 16 | # File 'lib/reamaze_api/contact.rb', line 14 def all(params = {}) paginate "/contacts", :contacts, params end | 
#create(params) ⇒ Object
Create a new contact.
| 29 30 31 | # File 'lib/reamaze_api/contact.rb', line 29 def create(params) post "/contacts", params end | 
#update(slug, params) ⇒ Object
Update an existing contact.
| 45 46 47 | # File 'lib/reamaze_api/contact.rb', line 45 def update(slug, params) put "/contacts/#{slug}", params end |