Class: Greeve::Character::SkillQueue

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

Overview

Character skill queue.

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 = {}) ⇒ SkillQueue

Returns a new instance of SkillQueue

Parameters:

  • character_id (Integer)

    EVE character ID



22
23
24
25
# File 'lib/greeve/character/skill_queue.rb', line 22

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

Instance Method Details

#skillqueueGreeve::Rowset

Parameters:

  • queue_position (Integer)
  • type_id (Integer)
  • level (Integer)
  • start_sp (Integer)
  • end_sp (Integer)
  • start_time (Time)
  • end_time (Time)

Returns:



11
12
13
14
15
16
17
18
19
# File 'lib/greeve/character/skill_queue.rb', line 11

rowset :skillqueue, xpath: "eveapi/result/rowset[@name='skillqueue']" do
  attribute :queue_position, xpath: "@queuePosition", type: :integer
  attribute :type_id,        xpath: "@typeID",        type: :integer
  attribute :level,          xpath: "@level",         type: :integer
  attribute :start_sp,       xpath: "@startSP",       type: :integer
  attribute :end_sp,         xpath: "@endSP",         type: :integer
  attribute :start_time,     xpath: "@startTime",     type: :datetime
  attribute :end_time,       xpath: "@endTime",       type: :datetime
end