Sha256: 7354d5e8df0881d6f6bdf1ff4462f729e75a332772f29f7da256c9255926d03a
Contents?: true
Size: 430 Bytes
Versions: 3
Compression:
Stored size: 430 Bytes
Contents
require 'oxford_dictionary/endpoints/endpoint' module OxfordDictionary module Endpoints class Thesaurus < Endpoint ENDPOINT = 'thesaurus'.freeze def thesaurus(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