Class: PUBG::Match::Roster::Relationships::Participants
- Inherits:
-
Object
- Object
- PUBG::Match::Roster::Relationships::Participants
- Defined in:
- lib/pubg/match/roster/relationships.rb
Overview
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#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.
24 25 26 27 |
# File 'lib/pubg/match/roster/relationships.rb', line 24 def initialize(args) @type = args["type"] @id = args["id"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
22 23 24 |
# File 'lib/pubg/match/roster/relationships.rb', line 22 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
22 23 24 |
# File 'lib/pubg/match/roster/relationships.rb', line 22 def type @type end |