Class: Redis::TimeSeries::Filters::NotEqual
- Inherits:
-
Struct
- Object
- Struct
- Redis::TimeSeries::Filters::NotEqual
- 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
21 22 23 |
# File 'lib/redis/time_series/filters.rb', line 21 def label @label end |
#value ⇒ Object
Returns the value of attribute value
21 22 23 |
# File 'lib/redis/time_series/filters.rb', line 21 def value @value end |
Class Method Details
.parse(str) ⇒ Object
24 25 26 |
# File 'lib/redis/time_series/filters.rb', line 24 def self.parse(str) new(*str.split('!=')) end |
Instance Method Details
#to_h ⇒ Object
28 29 30 |
# File 'lib/redis/time_series/filters.rb', line 28 def to_h { label => { not: value } } end |
#to_s ⇒ Object
32 33 34 |
# File 'lib/redis/time_series/filters.rb', line 32 def to_s "#{label}!=#{value}" end |