Class: Eson::Search::Type
- Inherits:
-
Object
- Object
- Eson::Search::Type
- Includes:
- Filter
- Defined in:
- lib/eson/search/type.rb
Instance Attribute Summary collapse
-
#type { ... } ⇒ self
Generates a ‘type` filter in a filter context.
Instance Method Summary collapse
-
#initialize(type) ⇒ Type
constructor
A new instance of Type.
- #to_query_hash ⇒ Object
Methods included from Filter
Constructor Details
#initialize(type) ⇒ Type
Returns a new instance of Type.
11 12 13 |
# File 'lib/eson/search/type.rb', line 11 def initialize(type) self.type = type end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Eson::Search::Filter
Instance Attribute Details
#type { ... } ⇒ self
7 |
# File 'lib/eson/search/type.rb', line 7 short_name :type |
Instance Method Details
#to_query_hash ⇒ Object
15 16 17 |
# File 'lib/eson/search/type.rb', line 15 def to_query_hash {:type => {:value => type}} end |