Sha256: 36fffc19fa209ee72d1b9db3b759437f4464c41a1d74992e9cc130cc643591a9

Contents?: true

Size: 868 Bytes

Versions: 13

Compression:

Stored size: 868 Bytes

Contents

module CirroIOV2
  module Resources
    class NotificationTemplate < Base
      def list(params = nil)
        response = client.request_client.request(:get, resource_root, params: params)
        Responses::NotificationTemplateListResponse.new(response.body)
      end

      def create(params)
        response = client.request_client.request(:post, resource_root, body: params)
        Responses::NotificationTemplateResponse.new(response.body)
      end

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

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cirro-ruby-client-2.6.1 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.6.0 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.17 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.16 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.15 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.14 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.13 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.12 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.11 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.10 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.9 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.8 lib/cirro_io_v2/resources/notification_template.rb
cirro-ruby-client-2.5.7 lib/cirro_io_v2/resources/notification_template.rb