Class: LolApi::Stat

Inherits:
Object
  • Object
show all
Includes:
Utils::Inspectable
Defined in:
lib/lol_api/types/dtos/stat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::Inspectable

#inspect

Constructor Details

#initialize(raw_stat) ⇒ Stat

Returns a new instance of Stat.



7
8
9
# File 'lib/lol_api/types/dtos/stat.rb', line 7

def initialize(raw_stat)
	@raw_stat = raw_stat
end

Instance Attribute Details

#raw_statObject (readonly)

Returns the value of attribute raw_stat.



5
6
7
# File 'lib/lol_api/types/dtos/stat.rb', line 5

def raw_stat
  @raw_stat
end

Instance Method Details

#nameObject



11
12
13
# File 'lib/lol_api/types/dtos/stat.rb', line 11

def name 
	raw_stat[0]
end

#valueObject



15
16
17
# File 'lib/lol_api/types/dtos/stat.rb', line 15

def value
	raw_stat[1]
end