class Sightstone::MasteryBook
Class to represent the masterybook of a summoner @attr [Numeric] summonerId id of the summoner @attr [Array<MasteryPage>] pages of the masterybook
Attributes
pages[RW]
summonerId[RW]
Public Class Methods
new(data)
click to toggle source
# File lib/sightstone/masterybook.rb, line 8 def initialize(data) @summonerId = data['summonerId'] @pages = [] if(data.has_key? 'pages') data['pages'].each do |page| @pages << MasteryPage.new(page) end end end