Class: DataMapper::Parse::Conditions::InComparison
- Inherits:
-
Comparison
- Object
- Comparison
- DataMapper::Parse::Conditions::InComparison
- Defined in:
- lib/adapters/parse/query.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ InComparison
constructor
A new instance of InComparison.
Methods inherited from Comparison
Constructor Details
#initialize(value) ⇒ InComparison
Returns a new instance of InComparison.
41 42 43 |
# File 'lib/adapters/parse/query.rb', line 41 def initialize(value) @value = value.is_a?(Hash) ? [value] : value.to_a end |