Class: SeatGeek::BuildQuery
- Inherits:
-
Object
- Object
- SeatGeek::BuildQuery
- Defined in:
- lib/seat_geek/build_query.rb
Class Method Summary collapse
Class Method Details
.build(options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/seat_geek/build_query.rb', line 4 def self.build() query = "" if [:month_of_the_year] query = month_query([:month_of_the_year]) end if [:state] query = query + location_query([:state]) end if [:attendee_count] query = query + attendee_count_query([:attendee_count]) end if [:event_type] query = query + event_type_query([:event_type]) end [:base_url] + query end |