Class: CirroIOV2::Resources::NotificationLayoutTemplate

Inherits:
Base
  • Object
show all
Defined in:
lib/cirro_io_v2/resources/notification_layout_template.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize, #resource_root

Constructor Details

This class inherits a constructor from CirroIOV2::Resources::Base

Instance Method Details

#delete(id) ⇒ Object


9
10
11
12
# File 'lib/cirro_io_v2/resources/notification_layout_template.rb', line 9

def delete(id)
  response = client.request_client.request(:delete, "#{resource_root}/#{id}")
  Responses::NotificationLayoutTemplateDeleteResponse.new(response.body)
end

#update(id, params) ⇒ Object


4
5
6
7
# File 'lib/cirro_io_v2/resources/notification_layout_template.rb', line 4

def update(id, params)
  response = client.request_client.request(:post, "#{resource_root}/#{id}", body: params)
  Responses::NotificationLayoutTemplateResponse.new(response.body)
end