vivid_seats 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/vivid_seats.rb CHANGED
@@ -5,4 +5,6 @@ module VividSeats
5
5
  autoload :Event, 'vivid_seats/event'
6
6
  autoload :Performance, 'vivid_seats/performance'
7
7
  autoload :Performer, 'vivid_seats/performer'
8
+ autoload :Region, 'vivid_seats/region'
9
+ autoload :Venue, 'vivid_seats/venue'
8
10
  end
@@ -34,6 +34,14 @@ module VividSeats
34
34
  get('/getPerformers', :query => query)
35
35
  end
36
36
 
37
+ def regions(query={})
38
+ get('/getRegions', :query => query)
39
+ end
40
+
41
+ def venues(query={})
42
+ get('/getVenues', :query => query)
43
+ end
44
+
37
45
  def get(*args)
38
46
  response = super
39
47
 
@@ -0,0 +1,7 @@
1
+ module VividSeats
2
+ class Region
3
+ def all(query={})
4
+ API.regions(query)
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module VividSeats
2
+ class Venue
3
+ def all(query={})
4
+ API.venues(query)
5
+ end
6
+ end
7
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler Hunt
@@ -106,6 +106,8 @@ files:
106
106
  - lib/vivid_seats/event.rb
107
107
  - lib/vivid_seats/performance.rb
108
108
  - lib/vivid_seats/performer.rb
109
+ - lib/vivid_seats/region.rb
110
+ - lib/vivid_seats/venue.rb
109
111
  - lib/vivid_seats.rb
110
112
  has_rdoc: true
111
113
  homepage: http://github.com/tylerhunt/vivid_seats