seat_geek 0.1.0 → 0.1.1
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/version.rb +1 -1
- data/lib/seat_geek.rb +5 -5
- data/seat_geek-0.1.0.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 599fcac951380df4482c3d9aab9741ded5fa6c7f
|
4
|
+
data.tar.gz: 1fa18ceaaef1bacdeb8bc35d41fc324441fe2d82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e5d332da66ed4b6900ea75c798d0e23e2da9183c5a7c2e7d98b62abb7fda25cca4987142acf57f51eec9e515d66f7895d32b99c4ef8e121a7154e3a73e40a86
|
7
|
+
data.tar.gz: 03eff8d4faaa197df77e433cdf08cc618af39cac58001fbc6c88ffb272f32a8ba3a6fd770a33f6724a9b8957a765a2e3617d800e4d73d2e0ff7859e4742aaf87
|
data/lib/seat_geek/version.rb
CHANGED
data/lib/seat_geek.rb
CHANGED
@@ -20,7 +20,7 @@ module SeatGeek
|
|
20
20
|
|
21
21
|
attr_accessor :month_of_the_year, :state, :attendee_count, :event_type, :base_url
|
22
22
|
|
23
|
-
def build_query
|
23
|
+
def self.build_query
|
24
24
|
query = ""
|
25
25
|
if month_of_the_year
|
26
26
|
query = month_query(month_of_the_year)
|
@@ -39,7 +39,7 @@ module SeatGeek
|
|
39
39
|
|
40
40
|
# Events in April 2012
|
41
41
|
# $ curl 'http://api.seatgeek.com/2/events?datetime_utc.gte=2012-04-01&datetime_utc.lte=2012-04-30'
|
42
|
-
def month_query(year_month)
|
42
|
+
def self.month_query(year_month)
|
43
43
|
year, month = year_month.split('-')
|
44
44
|
year = year.to_i
|
45
45
|
month = month.to_i
|
@@ -51,18 +51,18 @@ module SeatGeek
|
|
51
51
|
|
52
52
|
# Events in NY state
|
53
53
|
# $ curl 'http://api.seatgeek.com/2/events?venue.state=NY'
|
54
|
-
def location_query(location)
|
54
|
+
def self.location_query(location)
|
55
55
|
"&venue.state=#{location}"
|
56
56
|
end
|
57
57
|
|
58
58
|
# GET http://api.seatgeek.com/2/events?listing_count.gt=0
|
59
|
-
def attendee_count_query(count)
|
59
|
+
def self.attendee_count_query(count)
|
60
60
|
"&listing_count.gt=#{count}"
|
61
61
|
end
|
62
62
|
|
63
63
|
# Sporting Events
|
64
64
|
# $ curl 'http://api.seatgeek.com/2/events?taxonomies.name=sports'
|
65
|
-
def event_type_query(type)
|
65
|
+
def self.event_type_query(type)
|
66
66
|
"&taxonomies.name=#{type}"
|
67
67
|
end
|
68
68
|
end
|
data/seat_geek-0.1.0.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seat_geek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Moon
|
@@ -114,6 +114,7 @@ files:
|
|
114
114
|
- lib/seat_geek/version.rb
|
115
115
|
- seat_geek-0.0.0.gem
|
116
116
|
- seat_geek-0.0.1.gem
|
117
|
+
- seat_geek-0.1.0.gem
|
117
118
|
- seat_geek.gemspec
|
118
119
|
homepage: https://github.com/jmoon90/seat_geek
|
119
120
|
licenses:
|