Class: CirroIOV2::Resources::NotificationTopicPreference

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

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#list(params = nil) ⇒ Object



8
9
10
11
# File 'lib/cirro_io_v2/resources/notification_topic_preference.rb', line 8

def list(params = nil)
  response = client.request_client.request(:get, resource_root, params:)
  Responses::NotificationTopicPreferenceListResponse.new(response.body)
end

#resource_rootObject



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

def resource_root
  'notification_topic_preferences'
end