Class: Wowr::Classes::TalentSpec
- Inherits:
-
Object
- Object
- Wowr::Classes::TalentSpec
- Defined in:
- lib/wowr/character.rb
Overview
Note the list of talent trees starts at 1. This is quirky, but that’s what’s used in the XML
Instance Attribute Summary collapse
-
#trees ⇒ Object
readonly
Returns the value of attribute trees.
Instance Method Summary collapse
-
#initialize(elem) ⇒ TalentSpec
constructor
A new instance of TalentSpec.
Constructor Details
#initialize(elem) ⇒ TalentSpec
Returns a new instance of TalentSpec.
660 661 662 663 664 665 |
# File 'lib/wowr/character.rb', line 660 def initialize(elem) @trees = [] @trees[1] = elem[:treeOne].to_i @trees[2] = elem[:treeTwo].to_i @trees[3] = elem[:treeThree].to_i end |
Instance Attribute Details
#trees ⇒ Object (readonly)
Returns the value of attribute trees.
658 659 660 |
# File 'lib/wowr/character.rb', line 658 def trees @trees end |