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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49e97691f77122292f4235f190818f8e0d11375d
4
- data.tar.gz: ee8cffa76959b41034f66520e3e7ca32497ef45f
3
+ metadata.gz: 792eee81a89d45b7ce5d1f2b98bc9e3469109b7f
4
+ data.tar.gz: 6cc13b64cfae1cdf13e791c265d6975a35ac770c
5
5
  SHA512:
6
- metadata.gz: 30ec602707b39c0540bce628f7b09c84bd52f3f2e408e5333bda2fe4f8745c1122ef5e570bd2953beb67a0eb37a489c8618d2ffcf86be1eea5c299552fd8bb13
7
- data.tar.gz: c5618b946bed66ccb120f58559a9fd9b98d9238e816ed00fa7bb8102a196ce54c0b4fe8ce4165e72035b1fbb5bc68bbc5c118b07834a32e888c842cf6355c3e6
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
@@ -1,3 +1,3 @@
1
1
  module SeatGeek
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Moon