module Redis::Stream::State

Constants

ERROR
IDLE
RUNNING
STOPPED

Public Class Methods

exists?(state) click to toggle source
# File lib/redis/stream/state.rb, line 10
def self.exists?(state)
  self.constants.include?(state.upcase.to_sym)
end
to_s() click to toggle source
# File lib/redis/stream/state.rb, line 14
def self.to_s
  self.constants.map { |m| m.to_s.downcase }.join(', ')
end