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