class PUBG::Match::Roster::Relationships
Attributes
participants[R]
team[R]
Public Class Methods
new(args)
click to toggle source
# File lib/pubg/match/roster/relationships.rb, line 7 def initialize(args) @args = args @team = args["team"]["data"] @participants = Array.new get_participants end
Public Instance Methods
get_participants()
click to toggle source
# File lib/pubg/match/roster/relationships.rb, line 14 def get_participants @args["participants"]["data"].each do |participant| @participants << Participants.new(participant) end end