cbs_sports 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/cbs_sports/client.rb +2 -1
- data/lib/cbs_sports/version.rb +1 -1
- data/lib/cbs_sports.rb +2 -2
- 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: 954fd2edd2c5a3c044225a1755471c34de3b2395
|
4
|
+
data.tar.gz: e13c12a5db4512e0b9dc6fdbf10a4d236a30e538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d30395209e91064172cb269bf7c7f5ecd84a254ef7d9b9c4e53dfaf4575b103f6051332310245141e7636aab9be50a6465e31d11064b92c788ec064cfa2297d7
|
7
|
+
data.tar.gz: 4445a58e4e91e1a0cc5578eb90fa7d428080526ff4821d2f31743d34e2a78873f719023f5a9de7195d139105e5dd10a70e1c5dfc90419736ee2a546f9b10c1f9
|
data/README.md
CHANGED
@@ -23,9 +23,9 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
### Client
|
25
25
|
|
26
|
-
When you create a client you can specify the response format you want. It defaults to JSON.
|
26
|
+
When you create a client you can specify the response format you want. It defaults to JSON. You must also specify a sport for which you want data.
|
27
27
|
```ruby
|
28
|
-
client = CBSSports.client(response_format: :json)
|
28
|
+
client = CBSSports.client(response_format: :json, sport: :baseball)
|
29
29
|
```
|
30
30
|
|
31
31
|
### Players
|
data/lib/cbs_sports/client.rb
CHANGED
data/lib/cbs_sports/version.rb
CHANGED
data/lib/cbs_sports.rb
CHANGED
@@ -7,8 +7,8 @@ module CBSSports
|
|
7
7
|
# Alias for CBSSports::Client.new
|
8
8
|
#
|
9
9
|
# @return [CBSSports::Client]
|
10
|
-
def client(response_format: :json)
|
11
|
-
CBSSports::Client.new(response_format: response_format)
|
10
|
+
def client(response_format: :json, sport:)
|
11
|
+
CBSSports::Client.new(response_format: response_format, sport: sport)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|