class RiotAPI::Rune
Public Class Methods
new(data)
click to toggle source
# File lib/riot_api/rune.rb, line 3 def initialize(data) data.delete("runeSlotId") key = key.underscore data.each do |key, value| self.class.send(:attr_accessor, key.to_sym) instance_variable_set("@#{key}", value) end end