Sha256: 309eb142686420735653e6745acb75169e56adfa42d6fa7ab26d2834d0238bfe
Contents?: true
Size: 420 Bytes
Versions: 3
Compression:
Stored size: 420 Bytes
Contents
require 'oxford_dictionary/endpoints/endpoint' module OxfordDictionary module Endpoints class Lemmas < Endpoint ENDPOINT = 'lemmas'.freeze 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 end end end
Version data entries
3 entries across 3 versions & 1 rubygems