Sha256: 1051a4d749b057906b4855db959971960ac27449f8c78f524ebff528936dc7d7

Contents?: true

Size: 568 Bytes

Versions: 4

Compression:

Stored size: 568 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
        "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-0.3.2.pre.55 lib/evostream/event/commands/list_streams.rb
evostream-event-0.3.1 lib/evostream/event/commands/list_streams.rb
evostream-event-0.3.1.pre.53 lib/evostream/event/commands/list_streams.rb
evostream-event-0.3.1.pre.52 lib/evostream/event/commands/list_streams.rb