Class: Wowr::Classes::SkillCategory
- Inherits:
-
Object
- Object
- Wowr::Classes::SkillCategory
- Defined in:
- lib/wowr/classes.rb
Overview
General skill category eg Weapon Skills, Languages
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#skills ⇒ Object
readonly
Returns the value of attribute skills.
Instance Method Summary collapse
-
#initialize(elem) ⇒ SkillCategory
constructor
A new instance of SkillCategory.
Constructor Details
#initialize(elem) ⇒ SkillCategory
Returns a new instance of SkillCategory.
708 709 710 711 712 713 714 715 716 |
# File 'lib/wowr/classes.rb', line 708 def initialize(elem) @key = elem[:key] @name = elem[:name] @skills = [] (elem/:skill).each do |skill| @skills << Skill.new(skill) end end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
706 707 708 |
# File 'lib/wowr/classes.rb', line 706 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
706 707 708 |
# File 'lib/wowr/classes.rb', line 706 def name @name end |
#skills ⇒ Object (readonly)
Returns the value of attribute skills.
706 707 708 |
# File 'lib/wowr/classes.rb', line 706 def skills @skills end |