Class: Reve::Classes::SkillRequirement
Overview
A SkillRequirement, for SkillTree and Reve::API#skill_tree Attributes
-
type_id ( Fixnum ) - ID of the Skill that is the SkillRequirement (Refer to CCP database dump invtypes)
-
level ( Fixnum ) - What level of the Skill is required
See Also: SkillTree, Reve::API#skill_tree
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#type_id ⇒ Object
(also: #id)
readonly
Returns the value of attribute type_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ SkillRequirement
constructor
A new instance of SkillRequirement.
Constructor Details
#initialize(elem) ⇒ SkillRequirement
Returns a new instance of SkillRequirement.
1150 1151 1152 1153 |
# File 'lib/reve/classes.rb', line 1150 def initialize(elem) @type_id = elem['typeID'].to_i @level = elem['skillLevel'].to_i end |
Instance Attribute Details
#level ⇒ Object (readonly)
Returns the value of attribute level.
1148 1149 1150 |
# File 'lib/reve/classes.rb', line 1148 def level @level end |
#type_id ⇒ Object (readonly) Also known as: id
Returns the value of attribute type_id.
1148 1149 1150 |
# File 'lib/reve/classes.rb', line 1148 def type_id @type_id end |