Class: MongoScope::EqScope

Inherits:
Object
  • Object
show all
Includes:
FromHash
Defined in:
lib/mongo_scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FromHash

#from_hash, #initialize

Instance Attribute Details

#fieldObject

Returns the value of attribute field.



117
118
119
# File 'lib/mongo_scope.rb', line 117

def field
  @field
end

#valObject

Returns the value of attribute val.



117
118
119
# File 'lib/mongo_scope.rb', line 117

def val
  @val
end

Instance Method Details

#find_opsObject



119
120
121
# File 'lib/mongo_scope.rb', line 119

def find_ops
  {field => val}
end