Class: OxfordDictionary::Endpoints::Lemmas
- Defined in:
- lib/oxford_dictionary/endpoints/lemmas.rb
Constant Summary collapse
- ENDPOINT =
'lemmas'.freeze
Instance Method Summary collapse
Methods inherited from Endpoint
Constructor Details
This class inherits a constructor from OxfordDictionary::Endpoints::Endpoint
Instance Method Details
#lemma(word:, language:, params: {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/oxford_dictionary/endpoints/lemmas.rb', line 8 def lemma(word:, language:, params: {}) path = "#{ENDPOINT}/#{language}/#{word}" uri = request_uri(path: path, params: params) response = @request_client.get(uri: uri) deserialize.call(response.body) end |