Sha256: 1edeebd032024da9697c95bc4e89ceb5ca2b91656a8e5f75421e13ed50b5b88f
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
require 'oxford_dictionary/deprecated_request' require 'oxford_dictionary/api_objects/list_response' module OxfordDictionary module Endpoints # Interface to '/search' endpoint module SearchEndpoint include OxfordDictionary::DeprecatedRequest ENDPOINT = 'search'.freeze def search(query, params = {}) params[:q] = query ListResponse.new(request(ENDPOINT, query, params)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oxford_dictionary-1.2.0 | lib/oxford_dictionary/endpoints/search_endpoint.rb |
oxford_dictionary-1.1.0 | lib/oxford_dictionary/endpoints/search_endpoint.rb |