Sha256: 53d0421dd11a7261667bbe47b53e92a0f77a65e81c3d782e5466f11a002b3be7
Contents?: true
Size: 523 Bytes
Versions: 2
Compression:
Stored size: 523 Bytes
Contents
module DiscourseApi module API module Search # Returns search results that match the specified term. # # @param term [String] a search term # @param options [Hash] A customizable set of options # @option options [String] :type_filter Returns results of the specified type. # @return [Array] Return results as an array of Hashes. def search(term, options={}) response = get('/search.json', options.merge(term: term)) response[:body] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discourse_api-0.1.2 | lib/discourse_api/api/search.rb |
discourse_api-0.1.1 | lib/discourse_api/api/search.rb |