seat_geek 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -9
- data/lib/seat_geek/taxonomy.rb +19 -3
- 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: fd5d921349d85661378ff27d9ecb023856482865
|
4
|
+
data.tar.gz: f0ea333ebcfc479f84ef8cc3df29b0ae60d0a404
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b50f96f6adede224ce97c039b84bae72f5a6f0d768fe417dd0d91192376464da8fa41830ff630259d51b87d6a1db645384a91fcb49421c1b6db6a3a07cf6dbb
|
7
|
+
data.tar.gz: e76ec66f3a866c2862fb987cc5f5a7a08a5e035cbd6b7d31b6e44fc9c8b304b24e5349e664bd6045ae45ec9393c51d4561681ba61401fa62a4b43f256d86e231
|
data/README.md
CHANGED
@@ -21,11 +21,34 @@ Or install it yourself as:
|
|
21
21
|
## Usage
|
22
22
|
|
23
23
|
|
24
|
-
|
24
|
+
Taxonomy
|
25
25
|
|
26
26
|
```ruby
|
27
|
-
SeatGeek.
|
27
|
+
taxonomy = SeatGeek::Taxonomy.new()
|
28
|
+
|
29
|
+
taxonomy.all
|
28
30
|
# => GET http://api.seatgeek.com/2/taxonomies
|
31
|
+
|
32
|
+
taxonomy.professional_sports
|
33
|
+
# 7 professional sports
|
34
|
+
# mlb
|
35
|
+
# nba
|
36
|
+
# nfl
|
37
|
+
# nhl
|
38
|
+
# mls
|
39
|
+
# pga
|
40
|
+
# mma
|
41
|
+
|
42
|
+
|
43
|
+
taxonomy.concerts
|
44
|
+
# 7 conerts related events
|
45
|
+
# classical
|
46
|
+
# theater
|
47
|
+
# concert
|
48
|
+
# music_festival is index
|
49
|
+
# comedy
|
50
|
+
# dance_performance_tour
|
51
|
+
# broadway_tickets_national
|
29
52
|
```
|
30
53
|
Events (accepts five parameters or none)
|
31
54
|
```ruby
|
@@ -39,18 +62,14 @@ SeatGeek.get_events(month_of_the_year: '2016-03',
|
|
39
62
|
seat_geek_partner_id:)
|
40
63
|
```
|
41
64
|
|
42
|
-
## Development
|
43
|
-
|
44
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
45
|
-
|
46
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
47
|
-
|
48
65
|
## Contributing
|
49
66
|
|
50
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/jmoon/seat_geek.
|
67
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jmoon/seat_geek.
|
51
68
|
|
52
69
|
please write tests with each pull request
|
53
70
|
|
71
|
+
If you're lookig for features to work on, please check out https://github.com/jmoon90/seat_geek/issues
|
72
|
+
|
54
73
|
## License
|
55
74
|
|
56
75
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/seat_geek/taxonomy.rb
CHANGED
@@ -26,11 +26,27 @@ module SeatGeek
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def concerts
|
29
|
-
|
29
|
+
concerts = []
|
30
|
+
conert_ids = [2,6,9,15,19,33,37]
|
31
|
+
result = SeatGeek::Taxonomy.new.all
|
32
|
+
|
33
|
+
conert_ids.each do |x|
|
34
|
+
concerts << result[x]
|
35
|
+
end
|
36
|
+
|
37
|
+
concerts
|
30
38
|
end
|
31
39
|
|
32
|
-
def
|
33
|
-
|
40
|
+
def minor_league_sports
|
41
|
+
minor = []
|
42
|
+
minorSports = [2,6,9,15,19,33,37]
|
43
|
+
result = SeatGeek::Taxonomy.new.all
|
44
|
+
|
45
|
+
minorSports.each do |x|
|
46
|
+
minor << result[x]
|
47
|
+
end
|
48
|
+
|
49
|
+
minor
|
34
50
|
end
|
35
51
|
|
36
52
|
private
|
data/lib/seat_geek/version.rb
CHANGED