Class: Greeve::Character::IndustryJobs

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

Overview

Unfinished character industry jobs.

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

Returns a new instance of IndustryJobs

Parameters:

  • character_id (Integer)

    EVE character ID



42
43
44
45
# File 'lib/greeve/character/industry_jobs.rb', line 42

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

Instance Method Details

#jobsGreeve::Rowset

Parameters:

  • job_id (Integer)
  • installer_id (Integer)
  • installer_name (String)
  • facility_id (Integer)
  • solar_system_id (Integer)
  • solar_system_name (String)
  • station_id (Integer)
  • activity_id (Integer)
  • blueprint_id (Integer)
  • blueprint_type_id (Integer)
  • blueprint_type_name (String)
  • blueprint_location_id (Integer)
  • output_location_id (Integer)
  • runs (Integer)
  • cost (BigDecimal)
  • licensed_runs (Integer)
  • probability (BigDecimal)
  • product_type_id (Integer)
  • product_type_name (String)
  • status (Integer)
  • time_in_seconds (Integer)
  • start_date (Time)
  • end_date (Time)
  • pause_date (Time)
  • completed_date (Time)
  • completed_character_id (Integer)
  • successful_runs (Integer)

Returns:



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/greeve/character/industry_jobs.rb', line 11

rowset :jobs, xpath: "eveapi/result/rowset[@name='jobs']" do
  attribute :job_id,                 xpath: "@jobID",                type: :integer
  attribute :installer_id,           xpath: "@installerID",          type: :integer
  attribute :installer_name,         xpath: "@installerName",        type: :string
  attribute :facility_id,            xpath: "@facilityID",           type: :integer
  attribute :solar_system_id,        xpath: "@solarSystemID",        type: :integer
  attribute :solar_system_name,      xpath: "@solarSystemName",      type: :string
  attribute :station_id,             xpath: "@stationID",            type: :integer
  attribute :activity_id,            xpath: "@activityID",           type: :integer
  attribute :blueprint_id,           xpath: "@blueprintID",          type: :integer
  attribute :blueprint_type_id,      xpath: "@blueprintTypeID",      type: :integer
  attribute :blueprint_type_name,    xpath: "@blueprintTypeName",    type: :string
  attribute :blueprint_location_id,  xpath: "@blueprintLocationID",  type: :integer
  attribute :output_location_id,     xpath: "@outputLocationID",     type: :integer
  attribute :runs,                   xpath: "@runs",                 type: :integer
  attribute :cost,                   xpath: "@cost",                 type: :numeric
  attribute :licensed_runs,          xpath: "@licensedRuns",         type: :integer
  attribute :probability,            xpath: "@probability",          type: :numeric
  attribute :product_type_id,        xpath: "@productTypeID",        type: :integer
  attribute :product_type_name,      xpath: "@productTypeName",      type: :string
  attribute :status,                 xpath: "@status",               type: :integer
  attribute :time_in_seconds,        xpath: "@timeInSeconds",        type: :integer
  attribute :start_date,             xpath: "@startDate",            type: :datetime
  attribute :end_date,               xpath: "@endDate",              type: :datetime
  attribute :pause_date,             xpath: "@pauseDate",            type: :datetime
  attribute :completed_date,         xpath: "@completedDate",        type: :datetime
  attribute :completed_character_id, xpath: "@completedCharacterID", type: :integer
  attribute :successful_runs,        xpath: "@successfulRuns",       type: :integer
end