Class: PUBG::Match::Roster::Relationships::Participants

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

Overview


Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



22
23
24
# File 'lib/pubg/match/roster/relationships.rb', line 22

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



22
23
24
# File 'lib/pubg/match/roster/relationships.rb', line 22

def type
  @type
end