Sha256: 763286954e73447eb96322280021c9cfe9ebcc46a21d30a18411148e04733e7c

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

require 'oxford_dictionary/request'
require 'oxford_dictionary/api_objects/entry_response'

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oxford_dictionary-1.0.1 lib/oxford_dictionary/endpoints/inflection_endpoint.rb
oxford_dictionary-1.0.0 lib/oxford_dictionary/endpoints/inflection_endpoint.rb
oxford_dictionary-0.1.0 lib/oxford_dictionary/endpoints/inflection_endpoint.rb