Class: RailsSimpleSearch::ConditionItem
- Inherits:
-
Object
- Object
- RailsSimpleSearch::ConditionItem
- Defined in:
- lib/sql_handler.rb
Overview
This class holds a single condition
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#verb ⇒ Object
readonly
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(field, verb, value) ⇒ ConditionItem
constructor
A new instance of ConditionItem.
Constructor Details
#initialize(field, verb, value) ⇒ ConditionItem
Returns a new instance of ConditionItem.
144 145 146 147 148 |
# File 'lib/sql_handler.rb', line 144 def initialize(field, verb, value) @field = field @verb = verb @value = value end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
142 143 144 |
# File 'lib/sql_handler.rb', line 142 def field @field end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
142 143 144 |
# File 'lib/sql_handler.rb', line 142 def value @value end |
#verb ⇒ Object (readonly)
Returns the value of attribute verb.
142 143 144 |
# File 'lib/sql_handler.rb', line 142 def verb @verb end |