Sha256: fde94e8209d176e8f43058645c00ab028ff6707fbb02c64071eee5c076dcb1ce
Contents?: true
Size: 919 Bytes
Versions: 25
Compression:
Stored size: 919 Bytes
Contents
module CirroIOV2 module Resources class NotificationLayout < Base def list(params = nil) response = client.request_client.request(:get, resource_root, params: params) Responses::NotificationLayoutListResponse.new(response.body) end def create(params) response = client.request_client.request(:post, resource_root, body: params) Responses::NotificationLayoutResponse.new(response.body) end def update(id, params) response = client.request_client.request(:post, "#{resource_root}/#{id}", body: params) Responses::NotificationLayoutResponse.new(response.body) end def create_template(id, params) response = client.request_client.request(:post, "#{resource_root}/#{id}/notification_layout_templates", body: params) Responses::NotificationLayoutTemplateResponse.new(response.body) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems