Sha256: 2b88721dc426a09a11bbdaed96c20d1002b381547b9ead409cedb0647f19586d

Contents?: true

Size: 896 Bytes

Versions: 13

Compression:

Stored size: 896 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=#{encode_64}"
      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

13 entries across 13 versions & 1 rubygems

Version Path
evostream-event-1.0.3 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.3.pre.95 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.3.pre.93 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.3.pre.91 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.3.pre.83 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.2 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.2.pre.75 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.2.pre.74 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.1 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.1.pre.72 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.0 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.0.pre.69 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.0.pre.65 lib/evostream/event/commands/get_stream_info.rb