Class: Redis::TimeSeries::Filters::Present
- Inherits:
-
Struct
- Object
- Struct
- Redis::TimeSeries::Filters::Present
- Defined in:
- lib/redis/time_series/filters.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
53 54 55 |
# File 'lib/redis/time_series/filters.rb', line 53 def label @label end |
Class Method Details
.parse(str) ⇒ Object
56 57 58 |
# File 'lib/redis/time_series/filters.rb', line 56 def self.parse(str) new(str.delete('!=')) end |
Instance Method Details
#to_h ⇒ Object
60 61 62 |
# File 'lib/redis/time_series/filters.rb', line 60 def to_h { label => true } end |
#to_s ⇒ Object
64 65 66 |
# File 'lib/redis/time_series/filters.rb', line 64 def to_s "#{label}!=" end |