Class: PUBG::Player::Data
- Inherits:
-
Object
- Object
- PUBG::Player::Data
show all
- Defined in:
- lib/pubg/player/data.rb,
lib/pubg/player/data/links.rb,
lib/pubg/player/data/attributes.rb,
lib/pubg/player/data/relationships.rb
Defined Under Namespace
Classes: Attributes, Links, Relationships
Instance Method Summary
collapse
Constructor Details
#initialize(args) ⇒ Data
Returns a new instance of Data.
8
9
10
|
# File 'lib/pubg/player/data.rb', line 8
def initialize(args)
@args = args
end
|
Instance Method Details
#attributes ⇒ Object
20
21
22
|
# File 'lib/pubg/player/data.rb', line 20
def attributes
Attributes.new(@args["attributes"])
end
|
#id ⇒ Object
16
17
18
|
# File 'lib/pubg/player/data.rb', line 16
def id
@args["id"]
end
|
#links ⇒ Object
28
29
30
|
# File 'lib/pubg/player/data.rb', line 28
def links
Links.new(@args["links"])
end
|
#relationships ⇒ Object
24
25
26
|
# File 'lib/pubg/player/data.rb', line 24
def relationships
Relationships.new(@args["relationships"])
end
|
#type ⇒ Object
12
13
14
|
# File 'lib/pubg/player/data.rb', line 12
def type
@args["type"]
end
|