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