class Sightstone::RunePage
Class to represent a page of a runebook @attr [Numeric] id ID of the page @attr [String] name page name @attr [Boolean] current indicates if the page is selected @attr [Hash<Numeric, Rune>] slots matches slot ids to the rune
Attributes
current[RW]
id[RW]
name[RW]
slots[RW]
Public Class Methods
new(data)
click to toggle source
# File lib/sightstone/runebook.rb, line 27 def initialize(data) @id = data['id'] @name = data['name'] @current = data['current'] @slots = {} if(data.has_key? 'slots') data['slots'].each do |slot| @slots[slot['runeSlotId']] = Rune.new(slot['rune']) end end end