Class: Boldsign::Resources::Contact

Inherits:
Boldsign::Resource show all
Defined in:
lib/boldsign/resources/contact.rb

Overview

Contact-book endpoints (‘/v1/contacts/*`).

Instance Method Summary collapse

Methods inherited from Boldsign::Resource

#initialize

Constructor Details

This class inherits a constructor from Boldsign::Resource

Instance Method Details

#create(body) ⇒ Object



8
# File 'lib/boldsign/resources/contact.rb', line 8

def create(body);      @client.post("/v1/contacts/create", body: body); end

#delete(contact_id) ⇒ Object



10
# File 'lib/boldsign/resources/contact.rb', line 10

def delete(contact_id);     @client.delete("/v1/contacts/delete", contactId: contact_id); end

#get(contact_id) ⇒ Object



7
# File 'lib/boldsign/resources/contact.rb', line 7

def get(contact_id);   @client.get("/v1/contacts/get", contactId: contact_id); end

#list(**params) ⇒ Object



6
# File 'lib/boldsign/resources/contact.rb', line 6

def list(**params);    @client.get("/v1/contacts/list", params); end

#update(body, **params) ⇒ Object



9
# File 'lib/boldsign/resources/contact.rb', line 9

def update(body, **params); @client.put("/v1/contacts/update", body: body, params: params); end