Sha256: efea1bd1f2167633a8e17a5338d08ce3fc87e5f6bf200235614bf0208284b9b3
Contents?: true
Size: 429 Bytes
Versions: 3
Compression:
Stored size: 429 Bytes
Contents
require 'oxford_dictionary/endpoints/endpoint' module OxfordDictionary module Endpoints class Sentences < Endpoint ENDPOINT = 'sentences'.freeze def sentence(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