Class: PUBG::Match::Roster

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



7
8
9
# File 'lib/pubg/match/roster.rb', line 7

def attributes
  @attributes
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/pubg/match/roster.rb', line 7

def id
  @id
end

#relationshipsObject (readonly)

Returns the value of attribute relationships.



7
8
9
# File 'lib/pubg/match/roster.rb', line 7

def relationships
  @relationships
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/pubg/match/roster.rb', line 7

def type
  @type
end