Class: Reve::Classes::QueuedSkill

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

Overview

Holds the result of the Reve::API#skill_queue call. Attributes

  • queue_position ( Integer ) - The queue position of this QueuedSkill

  • 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

See Also: Reve::API#skill_queue

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ QueuedSkill

:nodoc:



1265
1266
1267
1268
1269
1270
1271
1272
1273
# File 'lib/reve/classes.rb', line 1265

def initialize(elem) #:nodoc:
  @queue_position = elem['queuePosition'].to_i
  @end_time         = elem['endTime'] == "" ? nil : elem['endTime'].to_time
  @start_time       = elem['startTime'] == "" ? nil : elem['startTime'].to_time
  @type_id          = elem['typeID'].to_i
  @start_sp         = elem['startSP'].to_i
  @end_sp           = elem['endSP'].to_i
  @to_level         = elem['level'].to_i
end

Instance Attribute Details

#end_spObject (readonly)

Returns the value of attribute end_sp.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def end_sp
  @end_sp
end

#end_timeObject (readonly)

Returns the value of attribute end_time.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def end_time
  @end_time
end

#queue_positionObject (readonly)

Returns the value of attribute queue_position.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def queue_position
  @queue_position
end

#start_spObject (readonly)

Returns the value of attribute start_sp.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def start_sp
  @start_sp
end

#start_timeObject (readonly)

Returns the value of attribute start_time.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def start_time
  @start_time
end

#to_levelObject (readonly)

Returns the value of attribute to_level.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def to_level
  @to_level
end

#type_idObject (readonly)

Returns the value of attribute type_id.



1264
1265
1266
# File 'lib/reve/classes.rb', line 1264

def type_id
  @type_id
end