espn_pub 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/espn_pub/entities/game.rb +2 -2
- data/lib/espn_pub/entities/player_game_stat.rb +3 -2
- data/lib/espn_pub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14b0d5b12073558b527ec6361250bbef63369a6193f54efa21649fa511361811
|
|
4
|
+
data.tar.gz: 18357736a89743ada39a17e20c703e8a92f65c0092c80b4de4ec31d72ac2fbf1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97ba06eb7d2d69f1bc9eab9381c36fecfbf5ae478143f9dd893d77d1ad476d3b8579b613ef132e28b228ff80c8cd909bd219b761b198efd69e77992a17a8e1a5
|
|
7
|
+
data.tar.gz: 1820b074096851aea41560939ecc707b3b8b4666eaf13804f2e25c1abeb11933cdc987c7d8d384db881847981d55e568771813dbcabb4be10738083564a438bf
|
|
@@ -62,7 +62,7 @@ module EspnPub
|
|
|
62
62
|
stats_data[key] = athlete['stats'][index]
|
|
63
63
|
end
|
|
64
64
|
@player_game_stats << EspnPub::Entities::PlayerGameStat.new(
|
|
65
|
-
player: player, team: team, stats_data: stats_data
|
|
65
|
+
player: player, team: team, stats_data: stats_data, starter: athlete['starter']
|
|
66
66
|
)
|
|
67
67
|
end
|
|
68
68
|
end
|
|
@@ -105,7 +105,7 @@ module EspnPub
|
|
|
105
105
|
|
|
106
106
|
def labels
|
|
107
107
|
['FG', '3PT', 'FT', 'Rebounds', 'Offensive Rebounds', 'Defensive Rebounds', 'Assists', 'Steals', 'Blocks',
|
|
108
|
-
'Turnovers']
|
|
108
|
+
'Turnovers', 'Fouls']
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
def game_summary_response
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
module EspnPub
|
|
4
4
|
module Entities
|
|
5
5
|
class PlayerGameStat < Base
|
|
6
|
-
attr_reader :player, :team, :stats_data
|
|
6
|
+
attr_reader :player, :team, :stats_data, :starter
|
|
7
7
|
|
|
8
|
-
def initialize(player:, team:, stats_data: {})
|
|
8
|
+
def initialize(player:, team:, stats_data: {}, starter: false)
|
|
9
9
|
@player = player
|
|
10
10
|
@team = team
|
|
11
11
|
@stats_data = stats_data
|
|
12
|
+
@starter = starter
|
|
12
13
|
super()
|
|
13
14
|
end
|
|
14
15
|
end
|
data/lib/espn_pub/version.rb
CHANGED