Class: PUBG::Match::Roster::Attributes
- Inherits:
-
Object
- Object
- PUBG::Match::Roster::Attributes
- Defined in:
- lib/pubg/match/roster/attributes.rb
Defined Under Namespace
Classes: Stats
Instance Attribute Summary collapse
-
#shardId ⇒ Object
readonly
Returns the value of attribute shardId.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
-
#won ⇒ Object
readonly
Returns the value of attribute won.
Instance Method Summary collapse
-
#initialize(args) ⇒ Attributes
constructor
A new instance of Attributes.
Constructor Details
#initialize(args) ⇒ Attributes
Returns a new instance of Attributes.
7 8 9 10 11 |
# File 'lib/pubg/match/roster/attributes.rb', line 7 def initialize(args) @stats = Stats.new(args["stats"]) @won = args["won"] @shardId = args["shardId"] end |
Instance Attribute Details
#shardId ⇒ Object (readonly)
Returns the value of attribute shardId.
5 6 7 |
# File 'lib/pubg/match/roster/attributes.rb', line 5 def shardId @shardId end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
5 6 7 |
# File 'lib/pubg/match/roster/attributes.rb', line 5 def stats @stats end |
#won ⇒ Object (readonly)
Returns the value of attribute won.
5 6 7 |
# File 'lib/pubg/match/roster/attributes.rb', line 5 def won @won end |