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

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

Defined Under Namespace

Classes: Stats

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#shardIdObject (readonly)

Returns the value of attribute shardId.



5
6
7
# File 'lib/pubg/match/roster/attributes.rb', line 5

def shardId
  @shardId
end

#statsObject (readonly)

Returns the value of attribute stats.



5
6
7
# File 'lib/pubg/match/roster/attributes.rb', line 5

def stats
  @stats
end

#wonObject (readonly)

Returns the value of attribute won.



5
6
7
# File 'lib/pubg/match/roster/attributes.rb', line 5

def won
  @won
end