stattleship-ruby 0.1.22 → 0.1.23
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f095ceec256ee7cfe766a5decb9434a4e2867ba
|
4
|
+
data.tar.gz: 2eb51f27fa34a77d0ebf623694b9db9b9a7db3a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ebcad2cf1947df9d8ce4d9cd47f6d771373ca987cb7109677b222fe726d44ad8580ed6793bab5d010da773e043be86b52be9258ae8d99579afc49b87c7e0519
|
7
|
+
data.tar.gz: b8e14cad2d864b0f8846d28b3be7d3a174a07c20ff416614ff9056f3c523ffee8cb05ac98fdbfe00fc81efedbefb098386388291a00b87a64fec40d4250c4538
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -22,7 +22,7 @@ gem install stattleship-ruby
|
|
22
22
|
## Usage
|
23
23
|
|
24
24
|
```
|
25
|
-
gem 'stattleship-ruby', '~> 0.1.
|
25
|
+
gem 'stattleship-ruby', '~> 0.1.23'
|
26
26
|
```
|
27
27
|
|
28
28
|
### Build
|
@@ -34,7 +34,7 @@ gem build stattleship-ruby.gemspec
|
|
34
34
|
### Install
|
35
35
|
|
36
36
|
```
|
37
|
-
gem install stattleship-ruby-0.1.
|
37
|
+
gem install stattleship-ruby-0.1.23.gem
|
38
38
|
```
|
39
39
|
## Prerequisites
|
40
40
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Stattleship
|
2
2
|
module Params
|
3
3
|
class GameTimeParams < Stattleship::Params::QueryParams
|
4
|
-
attr_accessor :season_id, :interval_type, :status, :on, :since
|
4
|
+
attr_accessor :season_id, :interval_type, :status, :on, :since, :week
|
5
5
|
|
6
6
|
def params
|
7
7
|
{
|
@@ -10,6 +10,7 @@ module Stattleship
|
|
10
10
|
'status' => status,
|
11
11
|
'on' => on,
|
12
12
|
'since' => since,
|
13
|
+
'week' => week,
|
13
14
|
}
|
14
15
|
end
|
15
16
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module Stattleship
|
2
2
|
module Params
|
3
|
-
class TotalPlayerStatParams < Stattleship::Params::
|
4
|
-
attr_accessor :interval_type, :player_id, :stat, :type
|
3
|
+
class TotalPlayerStatParams < Stattleship::Params::GameTimeParams
|
4
|
+
attr_accessor :interval_type, :player_id, :stat, :type, :week, :game_id
|
5
5
|
|
6
6
|
private
|
7
7
|
|
8
8
|
def params
|
9
9
|
super.merge({
|
10
|
-
'
|
10
|
+
'game_id' => game_id,
|
11
11
|
'player_id' => player_id,
|
12
12
|
'stat' => stat,
|
13
13
|
'type' => type,
|
@@ -1,14 +1,14 @@
|
|
1
1
|
module Stattleship
|
2
2
|
module Params
|
3
|
-
class TotalTeamStatParams < Stattleship::Params::
|
4
|
-
attr_accessor :interval_type, :team_id, :stat
|
3
|
+
class TotalTeamStatParams < Stattleship::Params::GameTimeParams
|
4
|
+
attr_accessor :interval_type, :team_id, :stat, :game_id
|
5
5
|
attr_reader :type
|
6
6
|
|
7
7
|
private
|
8
8
|
|
9
9
|
def params
|
10
10
|
{
|
11
|
-
'
|
11
|
+
'game_id' => game_id,
|
12
12
|
'team_id' => team_id,
|
13
13
|
'stat' => stat,
|
14
14
|
'type' => type,
|
data/lib/stattleship/version.rb
CHANGED