Class: PUBG::Seasons::Data

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

Defined Under Namespace

Classes: Attributes

Instance Method Summary collapse

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

#attributesObject



16
17
18
# File 'lib/pubg/seasons/data.rb', line 16

def attributes
  Attributes.new(@args["attributes"])
end

#idObject



12
13
14
# File 'lib/pubg/seasons/data.rb', line 12

def id
  @args["id"]
end

#typeObject



8
9
10
# File 'lib/pubg/seasons/data.rb', line 8

def type
  @args["type"]
end