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