Module: GogoKit::Client::Search
Overview
GogoKit::Client methods for searching for viagogo entities
Instance Method Summary collapse
-
#search(query, options = {}) ⇒ GogoKit::PagedResource
Search for entities that match a given query.
Methods included from Utils
Instance Method Details
#search(query, options = {}) ⇒ GogoKit::PagedResource
Search for entities that match a given query
16 17 18 19 20 21 22 23 24 |
# File 'lib/gogokit/client/search.rb', line 16 def search(query, = {}) [:params] ||= {} [:params] = [:params].merge(query: query) object_from_response(GogoKit::PagedResource, GogoKit::SearchResultsRepresenter, :get, get_root.links['viagogo:search'].href, ) end |