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.



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

def initialize(field, operator, options={})
  @field, @operator = field, operator
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



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

def field
  @field
end

#operatorObject (readonly)

Returns the value of attribute operator.



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

def operator
  @operator
end