Class: PUBG::Player::Data::Relationships

Inherits:
Object
  • Object
show all
Defined in:
lib/pubg/player/data/relationships.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Relationships

Returns a new instance of Relationships.



7
8
9
# File 'lib/pubg/player/data/relationships.rb', line 7

def initialize(args)
  @args = args
end

Instance Method Details

#assetsObject



11
12
13
# File 'lib/pubg/player/data/relationships.rb', line 11

def assets
  @args["assets"]["data"]
end

#matchesObject



15
16
17
18
19
20
21
# File 'lib/pubg/player/data/relationships.rb', line 15

def matches
  matches = []
  @args["matches"]["data"].each do |match|
    matches << Matches.new(match)
  end
  return matches
end