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)
-
- (Object) id
Returns the value of attribute id.
-
- (Object) level
Returns the value of attribute level.
-
- (Object) skillpoints
Returns the value of attribute skillpoints.
-
- (Object) unpublished
Returns the value of attribute unpublished.
Instance Method Summary (collapse)
-
- (Skill) initialize(elem)
constructor
:nodoc:.
Constructor Details
- (Skill) initialize(elem)
:nodoc:
1165 1166 1167 1168 1169 |
# File 'lib/reve/classes.rb', line 1165 def initialize(elem) #:nodoc: @id = elem['typeID'].to_i @skillpoints = elem['skillpoints'].to_i @level = elem['level'].to_i end |
Instance Attribute Details
- (Object) id
Returns the value of attribute id
1164 1165 1166 |
# File 'lib/reve/classes.rb', line 1164 def id @id end |
- (Object) level
Returns the value of attribute level
1164 1165 1166 |
# File 'lib/reve/classes.rb', line 1164 def level @level end |
- (Object) skillpoints
Returns the value of attribute skillpoints
1164 1165 1166 |
# File 'lib/reve/classes.rb', line 1164 def skillpoints @skillpoints end |
- (Object) unpublished
Returns the value of attribute unpublished
1164 1165 1166 |
# File 'lib/reve/classes.rb', line 1164 def unpublished @unpublished end |