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.
85 86 87 |
# File 'lib/rubill/query.rb', line 85 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.
81 82 83 |
# File 'lib/rubill/query.rb', line 81 def field @field end |
#op ⇒ Object
Returns the value of attribute op.
82 83 84 |
# File 'lib/rubill/query.rb', line 82 def op @op end |
#value ⇒ Object
Returns the value of attribute value.
83 84 85 |
# File 'lib/rubill/query.rb', line 83 def value @value end |
Instance Method Details
#to_hash ⇒ Object
89 90 91 92 93 94 95 |
# File 'lib/rubill/query.rb', line 89 def to_hash { field: field, op: op, value: value, } end |