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