Sha256: e2bf72aa5e5e4328f2707f414b9d485b3c3e0496cb19b8484f17d0d4f8243423
Contents?: true
Size: 907 Bytes
Versions: 17
Compression:
Stored size: 907 Bytes
Contents
module CirroIOV2 module Resources class NotificationTopic < Base def resource_root 'notification_topics' end def find(id) response = client.request_client.request(:get, "#{resource_root}/#{id}") Responses::NotificationTopicResponse.new(response.body) end def update(id, params) response = client.request_client.request(:post, "#{resource_root}/#{id}", body: params) Responses::NotificationTopicResponse.new(response.body) end def list(params = nil) response = client.request_client.request(:get, resource_root, params: params) Responses::NotificationTopicListResponse.new(response.body) end def create(params) response = client.request_client.request(:post, resource_root, body: params) Responses::NotificationTopicResponse.new(response.body) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems