Class: Reve::Classes::SkillRequirement

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

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

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ SkillRequirement

Returns a new instance of SkillRequirement.



1240
1241
1242
1243
# File 'lib/reve/classes.rb', line 1240

def initialize(elem)
  @type_id = elem['typeID'].to_i
  @level = elem['skillLevel'].to_i
end

Instance Attribute Details

#levelObject (readonly)

Returns the value of attribute level.



1238
1239
1240
# File 'lib/reve/classes.rb', line 1238

def level
  @level
end

#type_idObject (readonly) Also known as: id

Returns the value of attribute type_id.



1238
1239
1240
# File 'lib/reve/classes.rb', line 1238

def type_id
  @type_id
end