Sha256: c2cf15a3554479ba3adc8625e05d6bb8f33e02a877375f9f6b9f5ac5d928884f

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 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=#{Base64.encode64(command.join)}"
      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

2 entries across 2 versions & 1 rubygems

Version Path
evostream-event-0.3.0 lib/evostream/event/commands/list_streams.rb
evostream-event-0.3.0.pre.48 lib/evostream/event/commands/list_streams.rb