Module: Eson::Search::Parametrized
- Included in:
- BaseQuery, Facets::FacetArray, Filters::FilterArray, Queries::QueriesArray, QueryGroup
- Defined in:
- lib/eson/search/parametrized.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
4 5 6 |
# File 'lib/eson/search/parametrized.rb', line 4 def args @args end |
Instance Method Details
#initialize(args) ⇒ Object
6 7 8 |
# File 'lib/eson/search/parametrized.rb', line 6 def initialize(args) self.args = args end |
#param(name) ⇒ Object
10 11 12 |
# File 'lib/eson/search/parametrized.rb', line 10 def param(name) args[name] || (raise "Parameter #{name} not given") end |