Class: Eson::Search::Ids
- Inherits:
-
Object
- Object
- Eson::Search::Ids
- Defined in:
- lib/eson/search/ids.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #ids ⇒ Object
-
#initialize(*args) ⇒ Ids
constructor
A new instance of Ids.
Methods included from Query
Methods included from Filter
Constructor Details
#initialize(*args) ⇒ Ids
Returns a new instance of Ids.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/eson/search/ids.rb', line 13 def initialize(*args) if args.length == 2 self. = { :type => args.first, :values => args.last } else self. = args.first end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Eson::Search::Query
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
11 12 13 |
# File 'lib/eson/search/ids.rb', line 11 def @options end |
Instance Method Details
#ids { ... } ⇒ self #ids { ... } ⇒ self
9 |
# File 'lib/eson/search/ids.rb', line 9 short_name :ids |