Class: Reve::Classes::SkillInTraining
Overview
Holds the result of the Reve::API#skill_in_training call. Note: When a Character finishes training the API will not be updated until the Character next logs into the game. Attributes
-
tranquility_time ( Time ) - The current time on Tranquility
-
end_time ( Time ) - When the Skill is due to end
-
start_time ( Time ) - When the Skill training was started
-
type_id ( Fixnum ) - ID of the Skill (Refer to CCP database dump invtypes)
-
start_sp ( Fixnum ) - How many SP did the Character have before training was started
-
end_sp ( Fixnum ) - How many SP will the Character have after training finishes
-
to_level ( Fixnum ) - This is the level the Skill will be at when training is completed
-
skill_in_training ( Boolean ) - Is there actually a skill in training? (Check this first before doing anything)
See Also: CharacterSheet, Reve::API#skill_in_training
Instance Attribute Summary collapse
-
#end_sp ⇒ Object
readonly
Returns the value of attribute end_sp.
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#skill_in_training ⇒ Object
readonly
Returns the value of attribute skill_in_training.
-
#start_sp ⇒ Object
readonly
Returns the value of attribute start_sp.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#to_level ⇒ Object
readonly
Returns the value of attribute to_level.
-
#tranquility_time ⇒ Object
readonly
Returns the value of attribute tranquility_time.
-
#type_id ⇒ Object
readonly
Returns the value of attribute type_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ SkillInTraining
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ SkillInTraining
:nodoc:
1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 |
# File 'lib/reve/classes.rb', line 1198 def initialize(elem) #:nodoc: @tranquility_time = elem['currentTQTime'].to_time @end_time = elem['trainingEndTime'].to_time @start_time = elem['trainingStartTime'].to_time @type_id = elem['trainingTypeID'].to_i @start_sp = elem['trainingStartSP'].to_i @end_sp = elem['trainingDestinationSP'].to_i @to_level = elem['trainingToLevel'].to_i @skill_in_training= elem['skillInTraining'] == '1' end |
Instance Attribute Details
#end_sp ⇒ Object (readonly)
Returns the value of attribute end_sp.
1197 1198 1199 |
# File 'lib/reve/classes.rb', line 1197 def end_sp @end_sp end |
#end_time ⇒ Object (readonly)
Returns the value of attribute end_time.
1197 1198 1199 |
# File 'lib/reve/classes.rb', line 1197 def end_time @end_time end |
#skill_in_training ⇒ Object (readonly)
Returns the value of attribute skill_in_training.
1197 1198 1199 |
# File 'lib/reve/classes.rb', line 1197 def skill_in_training @skill_in_training end |
#start_sp ⇒ Object (readonly)
Returns the value of attribute start_sp.
1197 1198 1199 |
# File 'lib/reve/classes.rb', line 1197 def start_sp @start_sp end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
1197 1198 1199 |
# File 'lib/reve/classes.rb', line 1197 def start_time @start_time end |
#to_level ⇒ Object (readonly)
Returns the value of attribute to_level.
1197 1198 1199 |
# File 'lib/reve/classes.rb', line 1197 def to_level @to_level end |
#tranquility_time ⇒ Object (readonly)
Returns the value of attribute tranquility_time.
1197 1198 1199 |
# File 'lib/reve/classes.rb', line 1197 def tranquility_time @tranquility_time end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
1197 1198 1199 |
# File 'lib/reve/classes.rb', line 1197 def type_id @type_id end |