Skip to content

Commit

Permalink
Deprecate EntryEndpoint.entry_translations
Browse files Browse the repository at this point in the history
  • Loading branch information
swcraig committed Jun 23, 2019
1 parent 659bf07 commit d16d18f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/oxford_dictionary/endpoints/entry_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d16d18f

Please sign in to comment.