Class: PUBG::Match::Roster::Attributes::Stats
- Inherits:
-
Object
- Object
- PUBG::Match::Roster::Attributes::Stats
- Defined in:
- lib/pubg/match/roster/attributes.rb
Overview
Instance Attribute Summary collapse
-
#rank ⇒ Object
readonly
Returns the value of attribute rank.
-
#teamId ⇒ Object
readonly
Returns the value of attribute teamId.
Instance Method Summary collapse
-
#initialize(args) ⇒ Stats
constructor
A new instance of Stats.
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
#rank ⇒ Object (readonly)
Returns the value of attribute rank.
15 16 17 |
# File 'lib/pubg/match/roster/attributes.rb', line 15 def rank @rank end |
#teamId ⇒ Object (readonly)
Returns the value of attribute teamId.
15 16 17 |
# File 'lib/pubg/match/roster/attributes.rb', line 15 def teamId @teamId end |