Module: OxfordDictionary::Endpoints::InflectionEndpoint
- Includes:
- Request
- Included in:
- Client
- Defined in:
- lib/oxford_dictionary/endpoints/inflection_endpoint.rb
Overview
Interface to ‘/inflections’ endpoint
Constant Summary collapse
- ENDPOINT =
'inflections'.freeze
Constants included from Request
Request::ACCEPT_TYPE, Request::ADVANCED_FILTERS, Request::BASE
Instance Method Summary collapse
Methods included from Request
#advanced_query, #build_advanced_url, #build_url, #create_query_string, #error_message, #finish_url, #hash_element?, #options, #query_from_hash, #request, #request_headers, #search_endpoint_url
Instance Method Details
#inflection(query, params = {}) ⇒ Object
11 12 13 |
# File 'lib/oxford_dictionary/endpoints/inflection_endpoint.rb', line 11 def inflection(query, params = {}) EntryResponse.new(request(ENDPOINT, query, params)['results'][0]) end |