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.



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

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

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



165
166
167
# File 'lib/mongo_mapper/support.rb', line 165

def field
  @field
end

#operatorObject (readonly)

Returns the value of attribute operator.



165
166
167
# File 'lib/mongo_mapper/support.rb', line 165

def operator
  @operator
end