Class: Watchfor::Client::ContactGroups
Instance Method Summary
collapse
Methods inherited from Namespace
#initialize
Instance Method Details
#create(body, idempotency_key: nil) ⇒ Object
146
|
# File 'lib/watchfor/client.rb', line 146
def create(body, idempotency_key: nil) = @c.request("POST", "/contact-groups", body: body, idempotency_key: idempotency_key)
|
#delete(id) ⇒ Object
148
|
# File 'lib/watchfor/client.rb', line 148
def delete(id) = @c.request("DELETE", "/contact-groups/#{id}")
|
#get(id) ⇒ Object
145
|
# File 'lib/watchfor/client.rb', line 145
def get(id) = @c.request("GET", "/contact-groups/#{id}")
|
#list(**query) ⇒ Object
144
|
# File 'lib/watchfor/client.rb', line 144
def list(**query) = @c.request("GET", "/contact-groups", query: query)
|
#update(id, body) ⇒ Object
147
|
# File 'lib/watchfor/client.rb', line 147
def update(id, body) = @c.request("PATCH", "/contact-groups/#{id}", body: body)
|