Class: DataMapper::Parse::Conditions::InComparison

Inherits:
Comparison
  • Object
show all
Defined in:
lib/adapters/parse/query.rb

Direct Known Subclasses

In, Nin

Instance Method Summary collapse

Methods inherited from Comparison

#as_json, #key_name

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