Class: LolApi::SlottedRune
- Inherits:
-
Object
- Object
- LolApi::SlottedRune
- Defined in:
- lib/lol_api/types/summoner_runes.rb
Instance Attribute Summary collapse
-
#raw_rune ⇒ Object
readonly
Returns the value of attribute raw_rune.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(raw_rune) ⇒ SlottedRune
constructor
A new instance of SlottedRune.
- #slot_id ⇒ Object
Constructor Details
#initialize(raw_rune) ⇒ SlottedRune
Returns a new instance of SlottedRune.
54 55 56 |
# File 'lib/lol_api/types/summoner_runes.rb', line 54 def initialize(raw_rune) @raw_rune = raw_rune end |
Instance Attribute Details
#raw_rune ⇒ Object (readonly)
Returns the value of attribute raw_rune.
52 53 54 |
# File 'lib/lol_api/types/summoner_runes.rb', line 52 def raw_rune @raw_rune end |
Instance Method Details
#id ⇒ Object
58 59 60 |
# File 'lib/lol_api/types/summoner_runes.rb', line 58 def id raw_rune['runeId'] end |
#slot_id ⇒ Object
62 63 64 |
# File 'lib/lol_api/types/summoner_runes.rb', line 62 def slot_id raw_rune['runeSlotId'] end |