seat_geek 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/seat_geek/build_query.rb +4 -4
- data/lib/seat_geek/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 792eee81a89d45b7ce5d1f2b98bc9e3469109b7f
|
4
|
+
data.tar.gz: 6cc13b64cfae1cdf13e791c265d6975a35ac770c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5497af5a01b55f2356072f19a0a0178d8353e2651eac8e0c00648966da07b093f86f7e9b8ae4e83aa5f9dbc4efe719c45173663e2192520610bd79350bb7d3fd
|
7
|
+
data.tar.gz: 8c97cc49dcaef6155b68867bbdd0a5b1d3a3de7e6ff29c52cd37e3bbd3e8ca16aa529b4f0e898fd7f8481700565db8ca37150fc8f6fe6be1277acd01525533bd
|
@@ -25,7 +25,7 @@ module SeatGeek
|
|
25
25
|
|
26
26
|
# Events in April 2012
|
27
27
|
# $ curl 'http://api.seatgeek.com/2/events?datetime_utc.gte=2012-04-01&datetime_utc.lte=2012-04-30'
|
28
|
-
def month_query(year_month)
|
28
|
+
def self.month_query(year_month)
|
29
29
|
year, month = year_month.split('-')
|
30
30
|
year = year.to_i
|
31
31
|
month = month.to_i
|
@@ -37,18 +37,18 @@ module SeatGeek
|
|
37
37
|
|
38
38
|
# Events in NY state
|
39
39
|
# $ curl 'http://api.seatgeek.com/2/events?venue.state=NY'
|
40
|
-
def location_query(location)
|
40
|
+
def self.location_query(location)
|
41
41
|
"&venue.state=#{location}"
|
42
42
|
end
|
43
43
|
|
44
44
|
# GET http://api.seatgeek.com/2/events?listing_count.gt=0
|
45
|
-
def attendee_count_query(count)
|
45
|
+
def self.attendee_count_query(count)
|
46
46
|
"&listing_count.gt=#{count}"
|
47
47
|
end
|
48
48
|
|
49
49
|
# Sporting Events
|
50
50
|
# $ curl 'http://api.seatgeek.com/2/events?taxonomies.name=sports'
|
51
|
-
def event_type_query(type)
|
51
|
+
def self.event_type_query(type)
|
52
52
|
"&taxonomies.name=#{type}"
|
53
53
|
end
|
54
54
|
end
|
data/lib/seat_geek/version.rb
CHANGED