Skip to content

Commit

Permalink
Deprecate EntryEndpoint.entry_sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
swcraig committed Jun 23, 2019
1 parent 7677cb7 commit 8d712e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/oxford_dictionary/endpoints/entry_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ def entry_pronunciations(query, params = {})
end

def entry_sentences(query, params = {})
warn '''
Client#entry_sentences is DEPRECATED and will become non-functional
on June 30, 2019. Use Client#sentence instead. Reference
https://github.com/swcraig/oxford-dictionary/pull/13 for more
information. Check out OxfordDictionary::Endpoints::Sentences for the
interface to use.
'''

params[:end] = 'sentences'
entry_request(query, params)
end
Expand Down

0 comments on commit 8d712e4

Please sign in to comment.