module GogoKit::Client::Search
{GogoKit::Client} methods for searching for viagogo entities
Public Instance Methods
search(query, options = {})
click to toggle source
Search
for entities that match a given query
@see viagogo.github.io/developer.viagogo.net/#viagogosearch @param [String] query The query text to be used to match entities @param [Hash] options Optional options @return [GogoKit::PagedResource] The results of the query
# File lib/gogokit/client/search.rb, line 16 def search(query, options = {}) options[:params] ||= {} options[:params] = options[:params].merge(query: query) object_from_response(GogoKit::PagedResource, GogoKit::SearchResultsRepresenter, :get, get_root.links['viagogo:search'].href, options) end