Class: PUBG::Match::Roster::Attributes::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/pubg/match/roster/attributes.rb

Overview


Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Stats

Returns a new instance of Stats.



17
18
19
20
# File 'lib/pubg/match/roster/attributes.rb', line 17

def initialize(args)
  @rank = args["rank"]
  @teamId = args["teamId"]
end

Instance Attribute Details

#rankObject (readonly)

Returns the value of attribute rank.



15
16
17
# File 'lib/pubg/match/roster/attributes.rb', line 15

def rank
  @rank
end

#teamIdObject (readonly)

Returns the value of attribute teamId.



15
16
17
# File 'lib/pubg/match/roster/attributes.rb', line 15

def teamId
  @teamId
end