Sha256: 07248da6cfb0dfe5f859d1798a9f6ceac66833d82bd3f4197b0a8bed5677ce1c

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

require 'oxford_dictionary/deprecated_request'
require 'oxford_dictionary/api_objects/entry_response'

module OxfordDictionary
  module Endpoints
    # Interface to '/inflections' endpoint
    module InflectionEndpoint
      include OxfordDictionary::DeprecatedRequest
      ENDPOINT = 'inflections'.freeze

      def inflection(query, params = {})
        EntryResponse.new(request(ENDPOINT, query, params)['results'][0])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oxford_dictionary-1.1.0 lib/oxford_dictionary/endpoints/inflection_endpoint.rb