Sha256: 1a360853e3bf7ec53890844d9e454edb23c9acc6c5f490b0a9d45b5ccac525c2

Contents?: true

Size: 582 Bytes

Versions: 4

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

module Evostream
  module Commands
    # Provides a detailed description of all active streams.
    class ListStreams < Command
      def initialize(commands = {})
        super(commands)
      end

      def cmd
        super
        "listStreams?params=#{encode_64}"
      end

      private

      attr_reader :command

      # If this is 1 (true), internal streams (origin-edge related)
      # are filtered out from the list
      def disable_internal_streams(param = 'true')
        "disableInternalStreams=#{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/list_streams.rb
evostream-event-1.0.0.pre.58 lib/evostream/event/commands/list_streams.rb
evostream-event-0.3.2.pre.57 lib/evostream/event/commands/list_streams.rb
evostream-event-0.3.2.pre.56 lib/evostream/event/commands/list_streams.rb