Class: SymbolOperator
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Instance Method Summary collapse
-
#initialize(field, operator, options = {}) ⇒ SymbolOperator
constructor
A new instance of SymbolOperator.
Constructor Details
#initialize(field, operator, options = {}) ⇒ SymbolOperator
Returns a new instance of SymbolOperator.
167 168 169 |
# File 'lib/mongo_mapper/support.rb', line 167 def initialize(field, operator, ={}) @field, @operator = field, operator end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
165 166 167 |
# File 'lib/mongo_mapper/support.rb', line 165 def field @field end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
165 166 167 |
# File 'lib/mongo_mapper/support.rb', line 165 def operator @operator end |