Sha256: bfd9891ad655cdefc17d40a34c1ef129cbbf0cb6591b980327f282bf77cbc2c2

Contents?: true

Size: 863 Bytes

Versions: 4

Compression:

Stored size: 863 Bytes

Contents

# frozen_string_literal: true

module Evostream
  module Commands
    # Returns a detailed set of information about a stream.
    class GetStreamInfo < Command
      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

4 entries across 4 versions & 1 rubygems

Version Path
evostream-event-1.0.0.pre.59 lib/evostream/event/commands/get_stream_info.rb
evostream-event-1.0.0.pre.58 lib/evostream/event/commands/get_stream_info.rb
evostream-event-0.3.2.pre.57 lib/evostream/event/commands/get_stream_info.rb
evostream-event-0.3.2.pre.56 lib/evostream/event/commands/get_stream_info.rb