Class: PUBG::Status::Data
- Inherits:
-
Object
- Object
- PUBG::Status::Data
- Defined in:
- lib/pubg/status/data.rb
Instance Method Summary collapse
- #attributes ⇒ Object
- #id ⇒ Object
-
#initialize(args) ⇒ Data
constructor
A new instance of Data.
- #type ⇒ Object
Constructor Details
#initialize(args) ⇒ Data
Returns a new instance of Data.
6 7 8 |
# File 'lib/pubg/status/data.rb', line 6 def initialize(args) @args = args end |
Instance Method Details
#attributes ⇒ Object
18 19 20 |
# File 'lib/pubg/status/data.rb', line 18 def attributes Attributes.new(@args["attributes"]) end |
#id ⇒ Object
14 15 16 |
# File 'lib/pubg/status/data.rb', line 14 def id @args["id"] end |
#type ⇒ Object
10 11 12 |
# File 'lib/pubg/status/data.rb', line 10 def type @args["type"] end |