module GogoKit::Client::Listing
{GogoKit::Client} methods for getting listings
Public Instance Methods
get_listing(listing_id, options = {})
click to toggle source
Retrieves a listing by ID
@param [Integer] listing_id The ID of the listing to be retrieved @param [Hash] options Optional options @return [GogoKit::Listing] The requested listing
# File lib/gogokit/client/listing.rb, line 15 def get_listing(listing_id, options = {}) root = get_root object_from_response(GogoKit::Listing, GogoKit::ListingRepresenter, :get, "#{root.links['self'].href}/listings/" \ "#{listing_id}", options) end
get_listings_by_event(event_id, options = {})
click to toggle source
Retrieves all listings in a particular event
@see viagogo.github.io/developer.viagogo.net/#eventlistings @param [Hash] options Optional options @return [GogoKit::PagedResource] All listings in the specified event
# File lib/gogokit/client/listing.rb, line 30 def get_listings_by_event(event_id, options = {}) root = get_root object_from_response(GogoKit::PagedResource, GogoKit::ListingsRepresenter, :get, "#{root.links['self'].href}/events/" \ "#{event_id}/listings", options) end