Class: PUBG::Player::Season::Data::Attributes::GameModeStats
- Inherits:
-
Object
- Object
- PUBG::Player::Season::Data::Attributes::GameModeStats
- Defined in:
- lib/pubg/player/season/data/stats.rb,
lib/pubg/player/season/data/game_mode_stats.rb
Defined Under Namespace
Classes: Stats
Instance Method Summary collapse
- #duo ⇒ Object
- #duo_fpp ⇒ Object
-
#initialize(args) ⇒ GameModeStats
constructor
A new instance of GameModeStats.
- #solo ⇒ Object
- #solo_fpp ⇒ Object
- #squad ⇒ Object
- #squad_fpp ⇒ Object
Constructor Details
#initialize(args) ⇒ GameModeStats
Returns a new instance of GameModeStats.
9 10 11 |
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 9 def initialize(args) @args = args end |
Instance Method Details
#duo ⇒ Object
17 18 19 |
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 17 def duo Stats.new(@args["duo"]) end |
#duo_fpp ⇒ Object
29 30 31 |
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 29 def duo_fpp Stats.new(@args["duo-fpp"]) end |
#solo ⇒ Object
13 14 15 |
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 13 def solo Stats.new(@args["solo"]) end |
#solo_fpp ⇒ Object
25 26 27 |
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 25 def solo_fpp Stats.new(@args["solo-fpp"]) end |
#squad ⇒ Object
21 22 23 |
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 21 def squad Stats.new(@args["squad"]) end |
#squad_fpp ⇒ Object
33 34 35 |
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 33 def squad_fpp Stats.new(@args["squad-fpp"]) end |