Sha256: f64d7f2c8d301a39212dd13282f5ebd34967fee549302e71702493a4ae7100fe

Contents?: true

Size: 680 Bytes

Versions: 6

Compression:

Stored size: 680 Bytes

Contents

module RockRMS
  class Client
    module ContentChannel
      def list_content_channels(options = {})
        res = get(content_channel_path, options)
        Response::ContentChannel.format(res)
      end

      def find_content_channel(id)
        res = get(content_channel_path(id))
        Response::ContentChannel.format(res)
      end

      def update_content_channel(
        id:,
        foreign_key: nil
      )
        options = { foreign_key: foreign_key }.compact

        patch(content_channel_path(id), options)
      end

      private

      def content_channel_path(id = nil)
        id ? "ContentChannels/#{id}" : 'ContentChannels'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rock_rms-9.15.0 lib/rock_rms/resources/content_channel.rb
rock_rms-9.14.0 lib/rock_rms/resources/content_channel.rb
rock_rms-9.13.0 lib/rock_rms/resources/content_channel.rb
rock_rms-9.12.0 lib/rock_rms/resources/content_channel.rb
rock_rms-9.11.0 lib/rock_rms/resources/content_channel.rb
rock_rms-9.10.0 lib/rock_rms/resources/content_channel.rb