Module: Restfulie::Client::Feature::OpenSearch
- Defined in:
- lib/restfulie/client/feature/open_search.rb,
lib/restfulie/client/feature/open_search.rb,
lib/restfulie/client/feature/open_search/pattern_matcher.rb
Defined Under Namespace
Classes: PatternMatcher
Instance Attribute Summary collapse
-
#params_pattern ⇒ Object
readonly
Returns the value of attribute params_pattern.
Instance Method Summary collapse
Instance Attribute Details
#params_pattern ⇒ Object (readonly)
Returns the value of attribute params_pattern.
14 15 16 |
# File 'lib/restfulie/client/feature/open_search.rb', line 14 def params_pattern @params_pattern end |
Instance Method Details
#search(params) ⇒ Object
9 10 11 12 |
# File 'lib/restfulie/client/feature/open_search.rb', line 9 def search(params) at ("?" + PatternMatcher.new.match(params, params_pattern)) get end |
#with_pattern(params_pattern) ⇒ Object
16 17 18 19 |
# File 'lib/restfulie/client/feature/open_search.rb', line 16 def with_pattern(params_pattern) @params_pattern = params_pattern self end |