Class: Arbor::Filter
Constant Summary collapse
- OPERATORS =
[:equals, :from, :to, :after, :before, :search, :in, :tagged]
Constants included from Utils
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(attribute, operator, value) ⇒ Filter
constructor
A new instance of Filter.
- #to_s ⇒ Object
Methods included from Utils
#attempt, #get_resource_name, #left_pad, #parse_resource_name, #validate
Constructor Details
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
6 7 8 |
# File 'lib/arbor/filter.rb', line 6 def attribute @attribute end |
#operator ⇒ Object
Returns the value of attribute operator.
6 7 8 |
# File 'lib/arbor/filter.rb', line 6 def operator @operator end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/arbor/filter.rb', line 6 def value @value end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/arbor/filter.rb', line 15 def to_s "filters.#{attribute}.#{operator}=#{value}" end |