Class: Reve::Classes::Skill
Overview
A Skill is used in the CharacterSheet for Reve::API#character_sheet call. Attributes
-
id ( Fixnum ) - Type ID of the Skill. (Refer to CCP database dump invtypes)
-
skillpoints ( Fixnum ) - Number of skill points invested in this skill
-
level ( Fixnum ) - Level of the Skill
See Also: CharacterSheet, Reve::API#character_sheet
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#level ⇒ Object
Returns the value of attribute level.
-
#skillpoints ⇒ Object
Returns the value of attribute skillpoints.
-
#unpublished ⇒ Object
Returns the value of attribute unpublished.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Skill
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ Skill
:nodoc:
1122 1123 1124 1125 1126 |
# File 'lib/reve/classes.rb', line 1122 def initialize(elem) #:nodoc: @id = elem['typeID'].to_i @skillpoints = elem['skillpoints'].to_i @level = elem['level'].to_i end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
1121 1122 1123 |
# File 'lib/reve/classes.rb', line 1121 def id @id end |
#level ⇒ Object
Returns the value of attribute level.
1121 1122 1123 |
# File 'lib/reve/classes.rb', line 1121 def level @level end |
#skillpoints ⇒ Object
Returns the value of attribute skillpoints.
1121 1122 1123 |
# File 'lib/reve/classes.rb', line 1121 def skillpoints @skillpoints end |
#unpublished ⇒ Object
Returns the value of attribute unpublished.
1121 1122 1123 |
# File 'lib/reve/classes.rb', line 1121 def unpublished @unpublished end |