Class: Greeve::Character::SkillInTraining

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/character/skill_in_training.rb

Overview

Character skill in training.

Attributes collapse

Instance Method Summary collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

#initialize(character_id, opts = {}) ⇒ SkillInTraining

Returns a new instance of SkillInTraining

Parameters:

  • character_id (Integer)

    EVE character ID



21
22
23
24
# File 'lib/greeve/character/skill_in_training.rb', line 21

def initialize(character_id, opts = {})
  opts[:query_params] = { "characterID" => character_id }
  super(opts)
end

Instance Method Details

#current_tq_timeTime

Returns:

  • (Time)


11
# File 'lib/greeve/character/skill_in_training.rb', line 11

attribute :current_tq_time,         xpath: "eveapi/result/currentTQTime/?[0]",         type: :datetime

#skill_in_trainingObject

Returns:



18
# File 'lib/greeve/character/skill_in_training.rb', line 18

attribute :skill_in_training,       xpath: "eveapi/result/skillInTraining/?[0]",       type: :boolean

#training_destination_spInteger

Returns:

  • (Integer)


16
# File 'lib/greeve/character/skill_in_training.rb', line 16

attribute :training_destination_sp, xpath: "eveapi/result/trainingDestinationSP/?[0]", type: :integer

#training_end_timeTime

Returns:

  • (Time)


12
# File 'lib/greeve/character/skill_in_training.rb', line 12

attribute :training_end_time,       xpath: "eveapi/result/trainingEndTime/?[0]",       type: :datetime

#training_start_spInteger

Returns:

  • (Integer)


15
# File 'lib/greeve/character/skill_in_training.rb', line 15

attribute :training_start_sp,       xpath: "eveapi/result/trainingStartSP/?[0]",       type: :integer

#training_start_timeTime

Returns:

  • (Time)


13
# File 'lib/greeve/character/skill_in_training.rb', line 13

attribute :training_start_time,     xpath: "eveapi/result/trainingStartTime/?[0]",     type: :datetime

#training_to_levelInteger

Returns:

  • (Integer)


17
# File 'lib/greeve/character/skill_in_training.rb', line 17

attribute :training_to_level,       xpath: "eveapi/result/trainingToLevel/?[0]",       type: :integer

#training_type_idInteger

Returns:

  • (Integer)


14
# File 'lib/greeve/character/skill_in_training.rb', line 14

attribute :training_type_id,        xpath: "eveapi/result/trainingTypeID/?[0]",        type: :integer