Class: CirroIOV2::Resources::NotificationLayoutTemplate
- Inherits:
-
Base
- Object
- Base
- CirroIOV2::Resources::NotificationLayoutTemplate
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
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
|