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

Version Path
cirro-ruby-client-2.5.11 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.10 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.9 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.8 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.7 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.6 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.5 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.4 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.3 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.2 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.1 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.5.0 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.4.0 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.3.2 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.3.1 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.3.0 lib/cirro_io_v2/resources/notification_topic.rb
cirro-ruby-client-2.2.2 lib/cirro_io_v2/resources/notification_topic.rb