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.
171 172 173 |
# File 'lib/mongo_mapper/support.rb', line 171 def initialize(field, operator, ={}) @field, @operator = field, operator end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
169 170 171 |
# File 'lib/mongo_mapper/support.rb', line 169 def field @field end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
169 170 171 |
# File 'lib/mongo_mapper/support.rb', line 169 def operator @operator end |