Class: Rubill::Query::Filter
- Inherits:
-
Object
- Object
- Rubill::Query::Filter
- Defined in:
- lib/rubill/query.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#op ⇒ Object
Returns the value of attribute op.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(field, op, value) ⇒ Filter
constructor
A new instance of Filter.
- #to_hash ⇒ Object
Constructor Details
#initialize(field, op, value) ⇒ Filter
Returns a new instance of Filter.
81 82 83 |
# File 'lib/rubill/query.rb', line 81 def initialize(field, op, value) self.field, self.op, self.value = field, op, value end |
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
77 78 79 |
# File 'lib/rubill/query.rb', line 77 def field @field end |
#op ⇒ Object
Returns the value of attribute op.
78 79 80 |
# File 'lib/rubill/query.rb', line 78 def op @op end |
#value ⇒ Object
Returns the value of attribute value.
79 80 81 |
# File 'lib/rubill/query.rb', line 79 def value @value end |
Instance Method Details
#to_hash ⇒ Object
85 86 87 88 89 90 91 |
# File 'lib/rubill/query.rb', line 85 def to_hash { field: field, op: op, value: value, } end |