From d16d18f7609980c05014e235a861cfdcacbbd1e5 Mon Sep 17 00:00:00 2001 From: swcraig Date: Sat, 22 Jun 2019 17:43:15 -0700 Subject: [PATCH] Deprecate EntryEndpoint.entry_translations --- lib/oxford_dictionary/endpoints/entry_endpoint.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/oxford_dictionary/endpoints/entry_endpoint.rb b/lib/oxford_dictionary/endpoints/entry_endpoint.rb index f960b61..f000cd1 100644 --- a/lib/oxford_dictionary/endpoints/entry_endpoint.rb +++ b/lib/oxford_dictionary/endpoints/entry_endpoint.rb @@ -48,6 +48,13 @@ def entry_antonyms_synonyms(query, params = {}) end def entry_translations(query, params = {}) + warn ''' + Client#entry_translations is DEPRECATED and will become non-functional + on June 30, 2019. Use Client#translation instead. Reference + https://github.com/swcraig/oxford-dictionary/pull/12 for more + information. Check out OxfordDictionary::Endpoints::Translations for the + interface to use. + ''' params.key?(:translations) || params[:translations] = 'es' entry_request(query, params) end