Sha256: 36fffc19fa209ee72d1b9db3b759437f4464c41a1d74992e9cc130cc643591a9
Contents?: true
Size: 868 Bytes
Versions: 13
Compression:
Stored size: 868 Bytes
Contents
module CirroIOV2 module Resources class NotificationTemplate < Base def list(params = nil) response = client.request_client.request(:get, resource_root, params: params) Responses::NotificationTemplateListResponse.new(response.body) end def create(params) response = client.request_client.request(:post, resource_root, body: params) Responses::NotificationTemplateResponse.new(response.body) end def update(id, params) response = client.request_client.request(:post, "#{resource_root}/#{id}", body: params) Responses::NotificationTemplateResponse.new(response.body) end def delete(id) response = client.request_client.request(:delete, "#{resource_root}/#{id}") Responses::NotificationTemplateDeleteResponse.new(response.body) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems