Class: Watchfor::Client::Contacts
Instance Method Summary
collapse
Methods inherited from Namespace
#initialize
Instance Method Details
#create(body, idempotency_key: nil) ⇒ Object
138
|
# File 'lib/watchfor/client.rb', line 138
def create(body, idempotency_key: nil) = @c.request("POST", "/contacts", body: body, idempotency_key: idempotency_key)
|
#delete(id) ⇒ Object
140
|
# File 'lib/watchfor/client.rb', line 140
def delete(id) = @c.request("DELETE", "/contacts/#{id}")
|
#get(id) ⇒ Object
137
|
# File 'lib/watchfor/client.rb', line 137
def get(id) = @c.request("GET", "/contacts/#{id}")
|
#list(**query) ⇒ Object
136
|
# File 'lib/watchfor/client.rb', line 136
def list(**query) = @c.request("GET", "/contacts", query: query)
|
#update(id, body) ⇒ Object
139
|
# File 'lib/watchfor/client.rb', line 139
def update(id, body) = @c.request("PATCH", "/contacts/#{id}", body: body)
|