Sha256: f58c79c8f9c93d159bd3949b7558be0b3ac42263c36d5ec35b523206fd590094

Contents?: true

Size: 895 Bytes

Versions: 14

Compression:

Stored size: 895 Bytes

Contents

# frozen_string_literal: true

module Evostream
  module Commands
    # Returns a detailed set of information about a stream.
    class GetStreamInfo < Command
      MANDATORY = %w[id].freeze

      def initialize(commands = {})
        super(commands)
      end

      def cmd
        super
        "getStreamInfo?params=#{encode64}"
      end

      private

      # The uniqueId of the stream. Usually a value returned by listStreamsIDs.
      # This parameter is not mandatory but either this or the localStreamName
      # should be present to identify the particular stream
      def id(param = 'null')
        "id=#{param}"
      end

      # The name of the stream. This parameter is not mandatory but either this
      # or the id should be present to identify the particular stream
      def local_stream_name(param = '')
        "localStreamName=#{param}"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
evostream-event-2.0.3 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.3.pre.1265906291 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.3.pre.1265756691 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.3.pre.1265752332 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.2 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.2.pre.994185738 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.0.pre.994170151 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.0.pre.994165179 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.0.pre.994159616 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.0.pre.856454391 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.0.pre.856447460 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.0.pre.856441003 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.0.pre.816370746 lib/evostream/event/commands/get_stream_info.rb
evostream-event-2.0.0.pre.809444619 lib/evostream/event/commands/get_stream_info.rb