Module: SeatGeek

Extended by:
SeatGeek
Included in:
SeatGeek
Defined in:
lib/seat_geek.rb,
lib/seat_geek/version.rb,
lib/seat_geek/taxonomy.rb,
lib/seat_geek/build_query.rb,
lib/seat_geek/Taxonomies/tree.rb,
lib/seat_geek/Taxonomies/sports.rb,
lib/seat_geek/Taxonomies/concert.rb,
lib/seat_geek/Taxonomies/theater.rb

Defined Under Namespace

Modules: Taxonomies Classes: BuildQuery, Taxonomy

Constant Summary collapse

PUBLIC_API_URL =
'https://api.seatgeek.com/2/'
VERSION =
"0.7.0"

Class Method Summary collapse

Class Method Details

.get_events(options) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/seat_geek.rb', line 17

def self.get_events(options)
  @options = options
  @base_url = PUBLIC_API_URL + 'events?'
  if options[:seat_geek_partner_id]
    @base_url =+ "aid=#{options[:seat_geek_partner_id]}"
  end

  parse_response(typhoeus_request.body)
end

.get_recommendationsObject



35
36
37
38
# File 'lib/seat_geek.rb', line 35

def self.get_recommendations()#client_key:)
  @base_url = PUBLIC_API_URL + '/recommendations?client_id=MzkzMjEyMnwxNDQ5MjgzMTQ1'
  parse_response(typhoeus_request.body)
end