class LolApi::Mastery
Attributes
raw_mastery[R]
Public Class Methods
new(raw_mastery)
click to toggle source
# File lib/lol_api/types/mastery.rb, line 7 def initialize(raw_mastery) @raw_mastery = raw_mastery end
Public Instance Methods
description()
click to toggle source
# File lib/lol_api/types/mastery.rb, line 19 def description raw_mastery['description'] end
id()
click to toggle source
# File lib/lol_api/types/mastery.rb, line 11 def id raw_mastery['id'] end
image()
click to toggle source
# File lib/lol_api/types/mastery.rb, line 27 def image Image.new(raw_mastery['image']) if raw_mastery['image'] end
name()
click to toggle source
# File lib/lol_api/types/mastery.rb, line 15 def name raw_mastery['name'] end
prereq()
click to toggle source
# File lib/lol_api/types/mastery.rb, line 35 def prereq raw_mastery['prereq'].to_i end
ranks()
click to toggle source
# File lib/lol_api/types/mastery.rb, line 31 def ranks raw_mastery['ranks'] end
sanitized_description()
click to toggle source
# File lib/lol_api/types/mastery.rb, line 23 def sanitized_description raw_mastery['sanitizedDescription'] end