Class: PUBG::Player::Season::Data::Attributes::GameModeStats

Inherits:
Object
  • Object
show all
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

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

#duoObject



17
18
19
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 17

def duo
  Stats.new(@args["duo"])
end

#duo_fppObject



29
30
31
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 29

def duo_fpp
  Stats.new(@args["duo-fpp"])
end

#soloObject



13
14
15
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 13

def solo
  Stats.new(@args["solo"])
end

#solo_fppObject



25
26
27
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 25

def solo_fpp
  Stats.new(@args["solo-fpp"])
end

#squadObject



21
22
23
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 21

def squad
  Stats.new(@args["squad"])
end

#squad_fppObject



33
34
35
# File 'lib/pubg/player/season/data/game_mode_stats.rb', line 33

def squad_fpp
  Stats.new(@args["squad-fpp"])
end