Module: Redis::Stream::Type
- Defined in:
- lib/redis/stream/type.rb
Constant Summary collapse
- PING =
"PING".freeze
- PONG =
"PONG".freeze
- ACTION =
"ACTION".freeze
Class Method Summary collapse
Class Method Details
.exists?(type) ⇒ Boolean
9 10 11 |
# File 'lib/redis/stream/type.rb', line 9 def self.exists?(type) self.constants.include?(type.upcase.to_sym) end |
.to_s ⇒ Object
13 14 15 |
# File 'lib/redis/stream/type.rb', line 13 def self.to_s self.constants.map { |m| m.to_s.downcase }.join(', ') end |