class LolApi::Spell

Attributes

raw_spell[R]

Public Class Methods

new(raw_spell) click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 8
def initialize(raw_spell)
        @raw_spell = raw_spell
end

Public Instance Methods

alt_images() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 12
def alt_images
        if images = raw_spell['altimages']
                images.map do |item|
                        Image.new(item)
                end
        end
end
cooldown() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 20
def cooldown
        raw_spell['cooldown']
end
cooldown_burn() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 24
def cooldown_burn
        raw_spell['cooldownBurn']
end
cost() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 28
def cost
        raw_spell['cost']
end
cost_burn() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 32
def cost_burn 
        raw_spell['costBurn']
end
cost_type() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 36
def cost_type
        raw_spell['costType']
end
description() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 40
def description
        raw_spell['description']
end
effect() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 44
def effect
        raw_spell['effect']
end
effect_burn() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 48
def effect_burn
        raw_spell['effectBurn']
end
image() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 52
def image
        Image.new(raw_spell['image']) if raw_spell['image']
end
key() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 56
def key
        raw_spell['key']
end
level_tip() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 60
def level_tip
        raw_spell['leveltip']
end
max_rank() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 64
def max_rank
        raw_spell['max_rank']
end
name() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 67
def name
        raw_spell['name']
end
range() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 71
def range 
        raw_spell['range']
end
range_burn() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 75
def range_burn
        raw_spell['rangeBurn']
end
resource() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 78
def resource
        raw_spell['resource']
end
sanitized_description() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 82
def sanitized_description
        raw_spell['sanitized_description']
end
sanitized_tooltip() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 86
def sanitized_tooltip
        raw_spell['sanitized_tooltip']
end
tooltip() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 90
def tooltip
        raw_spell['tooltip']
end
vars() click to toggle source
# File lib/lol_api/types/dtos/spell.rb, line 94
def vars
        raw_spell['vars']
end