Class: LolApi::Stat
- Inherits:
-
Object
- Object
- LolApi::Stat
- Includes:
- Utils::Inspectable
- Defined in:
- lib/lol_api/types/dtos/stat.rb
Instance Attribute Summary collapse
-
#raw_stat ⇒ Object
readonly
Returns the value of attribute raw_stat.
Instance Method Summary collapse
-
#initialize(raw_stat) ⇒ Stat
constructor
A new instance of Stat.
- #name ⇒ Object
- #value ⇒ Object
Methods included from Utils::Inspectable
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_stat ⇒ Object (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
#name ⇒ Object
11 12 13 |
# File 'lib/lol_api/types/dtos/stat.rb', line 11 def name raw_stat[0] end |
#value ⇒ Object
15 16 17 |
# File 'lib/lol_api/types/dtos/stat.rb', line 15 def value raw_stat[1] end |