Class: PUBG::Seasons::Data
- Inherits:
-
Object
- Object
- PUBG::Seasons::Data
- Defined in:
- lib/pubg/seasons/data.rb
Defined Under Namespace
Classes: Attributes
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.
4 5 6 |
# File 'lib/pubg/seasons/data.rb', line 4 def initialize(args) @args = args end |
Instance Method Details
#attributes ⇒ Object
16 17 18 |
# File 'lib/pubg/seasons/data.rb', line 16 def attributes Attributes.new(@args["attributes"]) end |
#id ⇒ Object
12 13 14 |
# File 'lib/pubg/seasons/data.rb', line 12 def id @args["id"] end |
#type ⇒ Object
8 9 10 |
# File 'lib/pubg/seasons/data.rb', line 8 def type @args["type"] end |