Class: LolApi::SlottedRune

Inherits:
Object
  • Object
show all
Defined in:
lib/lol_api/types/summoner_runes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_runeObject (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

#idObject



58
59
60
# File 'lib/lol_api/types/summoner_runes.rb', line 58

def id 
	raw_rune['runeId']
end

#slot_idObject



62
63
64
# File 'lib/lol_api/types/summoner_runes.rb', line 62

def slot_id
	raw_rune['runeSlotId']
end