class Sightstone::MasteryPage

Class to represent a page of a masterybook @attr [Numeric] id ID of the page @attr [String] name page name @attr [Boolean] current indicates if the page is selected @attr [Array<Talent>] array of selected talents

Attributes

current[RW]
id[RW]
name[RW]
talents[RW]

Public Class Methods

new(data) click to toggle source
# File lib/sightstone/masterybook.rb, line 27
def initialize(data)
  @id = data['id']
  @name = data['name']
  @current = data['current']
  @talents = []
  if(data.has_key? 'talents')
    data['talents'].each do |talent|
      @talents << Talent.new(talent)
    end
  end
end