Class: SymbolOperator

Inherits:
Object show all
Defined in:
lib/mongo_mapper/support.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options={})
  @field, @operator = field, operator
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



169
170
171
# File 'lib/mongo_mapper/support.rb', line 169

def field
  @field
end

#operatorObject (readonly)

Returns the value of attribute operator.



169
170
171
# File 'lib/mongo_mapper/support.rb', line 169

def operator
  @operator
end