Module: SeatGeek

Extended by:
SeatGeek
Included in:
SeatGeek
Defined in:
lib/seat_geek.rb,
lib/seat_geek/version.rb,
lib/seat_geek/build_query.rb,
lib/seat_geek/models/event.rb,
lib/seat_geek/models/state.rb,
lib/seat_geek/models/event_type.rb,
lib/seat_geek/models/attendee_count.rb,
lib/seat_geek/models/month_and_year.rb

Defined Under Namespace

Modules: MonthAndYear, State Classes: BuildQuery, Event, EventType

Constant Summary collapse

PUBLIC_API_URL =
'http://api.seatgeek.com/2'
VERSION =
"0.3.2"

Class Method Summary collapse

Class Method Details

.get_events(month_of_the_year: nil, state: nil, attendee_count: nil, event_type: nil, seat_geek_partner_id: nil) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/seat_geek.rb', line 10

def self.get_events(month_of_the_year: nil, state: nil, attendee_count: nil, event_type: nil, seat_geek_partner_id: nil)
  @base_url = PUBLIC_API_URL + "/events?aid=#{seat_geek_partner_id}"
  @month_of_the_year = month_of_the_year
  @state = state
  @attendee_count = attendee_count
  @event_type = event_type

  parse_response(typhoeus_request.body)
end

.get_recommendations(client_key:) ⇒ Object



33
34
35
36
# File 'lib/seat_geek.rb', line 33

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

.get_taxonomiesObject



20
21
22
23
24
25
26
27
28
# File 'lib/seat_geek.rb', line 20

def self.get_taxonomies
  @base_url = PUBLIC_API_URL + '/taxonomies'
  @month_of_the_year = nil
  @state = nil
  @attendee_count = nil
  @event_type = nil

  parse_response(typhoeus_request.body)
end