Class: Redis::TimeSeries::Filters::Equal
- Inherits:
-
Struct
- Object
- Struct
- Redis::TimeSeries::Filters::Equal
- Defined in:
- lib/redis/time_series/filters.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
5 6 7 |
# File 'lib/redis/time_series/filters.rb', line 5 def label @label end |
#value ⇒ Object
Returns the value of attribute value
5 6 7 |
# File 'lib/redis/time_series/filters.rb', line 5 def value @value end |
Class Method Details
.parse(str) ⇒ Object
8 9 10 |
# File 'lib/redis/time_series/filters.rb', line 8 def self.parse(str) new(*str.split('=')) end |
Instance Method Details
#to_h ⇒ Object
12 13 14 |
# File 'lib/redis/time_series/filters.rb', line 12 def to_h { label => value } end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/redis/time_series/filters.rb', line 16 def to_s "#{label}=#{value}" end |