Class: Mongoid::ComplexCriterion
- Defined in:
- lib/mongoid/complex_criterion.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#operator ⇒ Object
Returns the value of attribute operator.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ComplexCriterion
constructor
A new instance of ComplexCriterion.
Constructor Details
#initialize(opts = {}) ⇒ ComplexCriterion
Returns a new instance of ComplexCriterion.
6 7 8 |
# File 'lib/mongoid/complex_criterion.rb', line 6 def initialize opts = {} @key, @operator = opts[:key], opts[:operator] end |