eve_online 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.mdlrc +1 -0
- data/.travis.yml +11 -2
- data/CHANGELOG.md +43 -17
- data/Gemfile.lock +37 -28
- data/Gemfile.mutant +0 -4
- data/Gemfile.mutant.lock +154 -0
- data/README.md +334 -302
- data/TODO.md +4 -0
- data/eve_online.gemspec +1 -1
- data/lib/eve_online.rb +2 -2
- data/lib/eve_online/esi/alliance.rb +6 -6
- data/lib/eve_online/esi/alliance_corporations.rb +3 -3
- data/lib/eve_online/esi/alliance_icon.rb +3 -3
- data/lib/eve_online/esi/alliances.rb +2 -2
- data/lib/eve_online/esi/ancestries.rb +2 -2
- data/lib/eve_online/esi/base.rb +3 -2
- data/lib/eve_online/esi/bloodlines.rb +2 -2
- data/lib/eve_online/esi/character.rb +6 -6
- data/lib/eve_online/esi/character_assets.rb +3 -3
- data/lib/eve_online/esi/character_attributes.rb +6 -6
- data/lib/eve_online/esi/character_blueprints.rb +3 -3
- data/lib/eve_online/esi/character_bookmark_folders.rb +3 -3
- data/lib/eve_online/esi/character_bookmarks.rb +3 -3
- data/lib/eve_online/esi/character_calendar.rb +3 -3
- data/lib/eve_online/esi/character_clones.rb +9 -9
- data/lib/eve_online/esi/character_fatigue.rb +3 -3
- data/lib/eve_online/esi/character_implants.rb +3 -3
- data/lib/eve_online/esi/character_industry_jobs.rb +5 -5
- data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
- data/lib/eve_online/esi/character_notifications.rb +3 -3
- data/lib/eve_online/esi/character_online.rb +5 -5
- data/lib/eve_online/esi/character_orders.rb +3 -3
- data/lib/eve_online/esi/character_portrait.rb +4 -5
- data/lib/eve_online/esi/character_skill_queue.rb +3 -3
- data/lib/eve_online/esi/character_skills.rb +11 -11
- data/lib/eve_online/esi/character_standings.rb +3 -3
- data/lib/eve_online/esi/character_wallet.rb +3 -3
- data/lib/eve_online/esi/character_wallet_journal.rb +3 -3
- data/lib/eve_online/esi/corporation.rb +7 -7
- data/lib/eve_online/esi/corporation_blueprints.rb +3 -3
- data/lib/eve_online/esi/corporation_industry_jobs.rb +5 -5
- data/lib/eve_online/esi/corporation_orders.rb +3 -3
- data/lib/eve_online/esi/dogma_attribute.rb +7 -7
- data/lib/eve_online/esi/dogma_attributes.rb +2 -2
- data/lib/eve_online/esi/factions.rb +2 -2
- data/lib/eve_online/esi/market_history.rb +4 -4
- data/lib/eve_online/esi/models/alliance.rb +18 -18
- data/lib/eve_online/esi/models/alliance_icon.rb +5 -5
- data/lib/eve_online/esi/models/ancestry.rb +16 -16
- data/lib/eve_online/esi/models/asset.rb +22 -17
- data/lib/eve_online/esi/models/attributes.rb +20 -20
- data/lib/eve_online/esi/models/bloodline.rb +25 -25
- data/lib/eve_online/esi/models/blueprint.rb +16 -16
- data/lib/eve_online/esi/models/bookmark.rb +26 -26
- data/lib/eve_online/esi/models/character.rb +28 -28
- data/lib/eve_online/esi/models/{industry_job.rb → character_industry_job.rb} +1 -2
- data/lib/eve_online/esi/models/character_order.rb +39 -49
- data/lib/eve_online/esi/models/character_portrait.rb +4 -20
- data/lib/eve_online/esi/models/corporation.rb +35 -35
- data/lib/eve_online/esi/models/corporation_industry_job.rb +132 -0
- data/lib/eve_online/esi/models/corporation_order.rb +42 -42
- data/lib/eve_online/esi/models/dogma_attribute.rb +21 -21
- data/lib/eve_online/esi/models/event.rb +11 -11
- data/lib/eve_online/esi/models/faction.rb +20 -20
- data/lib/eve_online/esi/models/jump_clone.rb +8 -8
- data/lib/eve_online/esi/models/market_history.rb +16 -16
- data/lib/eve_online/esi/models/notification.rb +10 -10
- data/lib/eve_online/esi/models/online.rb +6 -6
- data/lib/eve_online/esi/models/race.rb +11 -11
- data/lib/eve_online/esi/models/server_status.rb +7 -7
- data/lib/eve_online/esi/models/skill.rb +6 -6
- data/lib/eve_online/esi/models/skill_queue_entry.rb +19 -19
- data/lib/eve_online/esi/models/type.rb +33 -33
- data/lib/eve_online/esi/models/wallet_journal_entry.rb +37 -33
- data/lib/eve_online/esi/races.rb +2 -2
- data/lib/eve_online/esi/server_status.rb +2 -2
- data/lib/eve_online/esi/universe_type.rb +8 -8
- data/lib/eve_online/esi/universe_types.rb +2 -2
- data/lib/eve_online/version.rb +1 -1
- data/mutant.sh +1 -1
- metadata +14 -11
- data/lib/eve_online/esi/alliances_names.rb +0 -32
data/TODO.md
ADDED
data/eve_online.gemspec
CHANGED
@@ -21,13 +21,13 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.required_ruby_version = '>= 2.3'
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler'
|
24
|
-
spec.add_development_dependency 'codeclimate-test-reporter'
|
25
24
|
spec.add_development_dependency 'rake'
|
26
25
|
spec.add_development_dependency 'rspec'
|
27
26
|
spec.add_development_dependency 'rspec-its'
|
28
27
|
spec.add_development_dependency 'simplecov'
|
29
28
|
spec.add_development_dependency 'webmock'
|
30
29
|
spec.add_development_dependency 'vcr'
|
30
|
+
spec.add_development_dependency 'mdl'
|
31
31
|
|
32
32
|
spec.add_runtime_dependency 'activesupport', '>= 4.2.0'
|
33
33
|
spec.add_runtime_dependency 'faraday'
|
data/lib/eve_online.rb
CHANGED
@@ -50,7 +50,6 @@ require 'eve_online/esi/alliances'
|
|
50
50
|
require 'eve_online/esi/alliance'
|
51
51
|
require 'eve_online/esi/alliance_corporations'
|
52
52
|
require 'eve_online/esi/alliance_icon'
|
53
|
-
require 'eve_online/esi/alliances_names'
|
54
53
|
|
55
54
|
require 'eve_online/esi/dogma_attributes'
|
56
55
|
require 'eve_online/esi/dogma_attribute'
|
@@ -71,7 +70,8 @@ require 'eve_online/esi/models/asset'
|
|
71
70
|
require 'eve_online/esi/models/online'
|
72
71
|
require 'eve_online/esi/models/attributes'
|
73
72
|
require 'eve_online/esi/models/character'
|
74
|
-
require 'eve_online/esi/models/
|
73
|
+
require 'eve_online/esi/models/character_industry_job'
|
74
|
+
require 'eve_online/esi/models/corporation_industry_job'
|
75
75
|
require 'eve_online/esi/models/character_portrait'
|
76
76
|
require 'eve_online/esi/models/character_order'
|
77
77
|
require 'eve_online/esi/models/blueprint'
|
@@ -7,19 +7,19 @@ module EveOnline
|
|
7
7
|
class Alliance < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v3/alliances/%<alliance_id>s/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v3/alliances/%<alliance_id>s/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :alliance_id
|
13
13
|
|
14
14
|
def initialize(options)
|
15
15
|
super
|
16
16
|
|
17
|
-
@alliance_id = options
|
17
|
+
@alliance_id = options.fetch(:alliance_id)
|
18
18
|
end
|
19
19
|
|
20
|
-
def_delegators :model, :as_json, :
|
21
|
-
:
|
22
|
-
:
|
20
|
+
def_delegators :model, :as_json, :creator_corporation_id, :creator_id,
|
21
|
+
:date_founded, :executor_corporation_id, :faction_id,
|
22
|
+
:name, :ticker
|
23
23
|
|
24
24
|
def model
|
25
25
|
Models::Alliance.new(response)
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
def scope; end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(API_ENDPOINT, alliance_id: alliance_id)
|
32
|
+
format(API_ENDPOINT, alliance_id: alliance_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class AllianceCorporations < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/alliances/%<alliance_id>s/corporations/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/alliances/%<alliance_id>s/corporations/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :alliance_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@alliance_id = options
|
13
|
+
@alliance_id = options.fetch(:alliance_id)
|
14
14
|
end
|
15
15
|
|
16
16
|
def corporations
|
@@ -20,7 +20,7 @@ module EveOnline
|
|
20
20
|
def scope; end
|
21
21
|
|
22
22
|
def url
|
23
|
-
format(API_ENDPOINT, alliance_id: alliance_id)
|
23
|
+
format(API_ENDPOINT, alliance_id: alliance_id, datasource: datasource)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -7,14 +7,14 @@ module EveOnline
|
|
7
7
|
class AllianceIcon < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/alliances/%<alliance_id>s/icons/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/alliances/%<alliance_id>s/icons/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :alliance_id
|
13
13
|
|
14
14
|
def initialize(options)
|
15
15
|
super
|
16
16
|
|
17
|
-
@alliance_id = options
|
17
|
+
@alliance_id = options.fetch(:alliance_id)
|
18
18
|
end
|
19
19
|
|
20
20
|
def_delegators :model, :as_json, :icon_small, :icon_medium
|
@@ -27,7 +27,7 @@ module EveOnline
|
|
27
27
|
def scope; end
|
28
28
|
|
29
29
|
def url
|
30
|
-
format(API_ENDPOINT, alliance_id: alliance_id)
|
30
|
+
format(API_ENDPOINT, alliance_id: alliance_id, datasource: datasource)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class Alliances < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/alliances/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/alliances/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
def alliances
|
9
9
|
response
|
@@ -12,7 +12,7 @@ module EveOnline
|
|
12
12
|
def scope; end
|
13
13
|
|
14
14
|
def url
|
15
|
-
API_ENDPOINT
|
15
|
+
format(API_ENDPOINT, datasource: datasource)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class Ancestries < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/universe/ancestries/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/universe/ancestries/?datasource=%<datasource>s&language=en-us'
|
7
7
|
|
8
8
|
def ancestries
|
9
9
|
output = []
|
@@ -17,7 +17,7 @@ module EveOnline
|
|
17
17
|
def scope; end
|
18
18
|
|
19
19
|
def url
|
20
|
-
API_ENDPOINT
|
20
|
+
format(API_ENDPOINT, datasource: datasource)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
data/lib/eve_online/esi/base.rb
CHANGED
@@ -10,13 +10,14 @@ module EveOnline
|
|
10
10
|
class Base
|
11
11
|
extend Memoist
|
12
12
|
|
13
|
-
attr_reader :token, :parser, :_read_timeout, :_open_timeout
|
13
|
+
attr_reader :token, :parser, :_read_timeout, :_open_timeout, :datasource
|
14
14
|
|
15
15
|
def initialize(options = {})
|
16
16
|
@token = options[:token]
|
17
|
-
@parser = JSON
|
17
|
+
@parser = options[:parser] || JSON
|
18
18
|
@_read_timeout = options[:read_timeout] || 60
|
19
19
|
@_open_timeout = options[:open_timeout] || 60
|
20
|
+
@datasource = options[:datasource] || 'tranquility'
|
20
21
|
end
|
21
22
|
|
22
23
|
def url
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class Bloodlines < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/universe/bloodlines/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/universe/bloodlines/?datasource=%<datasource>s&language=en-us'
|
7
7
|
|
8
8
|
def bloodlines
|
9
9
|
output = []
|
@@ -17,7 +17,7 @@ module EveOnline
|
|
17
17
|
def scope; end
|
18
18
|
|
19
19
|
def url
|
20
|
-
API_ENDPOINT
|
20
|
+
format(API_ENDPOINT, datasource: datasource)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -7,19 +7,19 @@ module EveOnline
|
|
7
7
|
class Character < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v4/characters/%<character_id>s/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v4/characters/%<character_id>s/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
14
14
|
def initialize(options)
|
15
15
|
super
|
16
16
|
|
17
|
-
@character_id = options
|
17
|
+
@character_id = options.fetch(:character_id)
|
18
18
|
end
|
19
19
|
|
20
|
-
def_delegators :model, :as_json, :
|
21
|
-
:
|
22
|
-
:
|
20
|
+
def_delegators :model, :as_json, :alliance_id, :ancestry_id, :birthday,
|
21
|
+
:bloodline_id, :corporation_id, :description, :faction_id,
|
22
|
+
:gender, :name, :race_id, :security_status
|
23
23
|
|
24
24
|
def model
|
25
25
|
Models::Character.new(response)
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
def scope; end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(API_ENDPOINT, character_id: character_id)
|
32
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterAssets < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v3/characters/%<character_id>s/assets/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v3/characters/%<character_id>s/assets/?datasource=%<datasource>s&page=1'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@character_id = options
|
13
|
+
@character_id = options.fetch(:character_id)
|
14
14
|
end
|
15
15
|
|
16
16
|
def assets
|
@@ -27,7 +27,7 @@ module EveOnline
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def url
|
30
|
-
format(API_ENDPOINT, character_id: character_id)
|
30
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -7,19 +7,19 @@ module EveOnline
|
|
7
7
|
class CharacterAttributes < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/attributes/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/attributes/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
14
14
|
def initialize(options)
|
15
15
|
super
|
16
16
|
|
17
|
-
@character_id = options
|
17
|
+
@character_id = options.fetch(:character_id)
|
18
18
|
end
|
19
19
|
|
20
|
-
def_delegators :model, :as_json, :
|
21
|
-
:
|
22
|
-
:
|
20
|
+
def_delegators :model, :as_json, :accrued_remap_cooldown_date,
|
21
|
+
:bonus_remaps, :charisma, :intelligence, :last_remap_date,
|
22
|
+
:memory, :perception, :willpower
|
23
23
|
|
24
24
|
def model
|
25
25
|
Models::Attributes.new(response)
|
@@ -31,7 +31,7 @@ module EveOnline
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def url
|
34
|
-
format(API_ENDPOINT, character_id: character_id)
|
34
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterBlueprints < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/blueprints/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/blueprints/?datasource=%<datasource>s&page=1'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@character_id = options
|
13
|
+
@character_id = options.fetch(:character_id)
|
14
14
|
end
|
15
15
|
|
16
16
|
def blueprints
|
@@ -27,7 +27,7 @@ module EveOnline
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def url
|
30
|
-
format(API_ENDPOINT, character_id: character_id)
|
30
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterBookmarkFolders < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/bookmarks/folders/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/bookmarks/folders/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@character_id = options
|
13
|
+
@character_id = options.fetch(:character_id)
|
14
14
|
end
|
15
15
|
|
16
16
|
def bookmark_folders
|
@@ -27,7 +27,7 @@ module EveOnline
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def url
|
30
|
-
format(API_ENDPOINT, character_id: character_id)
|
30
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterBookmarks < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/bookmarks/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/bookmarks/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@character_id = options
|
13
|
+
@character_id = options.fetch(:character_id)
|
14
14
|
end
|
15
15
|
|
16
16
|
def bookmarks
|
@@ -27,7 +27,7 @@ module EveOnline
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def url
|
30
|
-
format(API_ENDPOINT, character_id: character_id)
|
30
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterCalendar < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/calendar/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/calendar/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@character_id = options
|
13
|
+
@character_id = options.fetch(:character_id)
|
14
14
|
end
|
15
15
|
|
16
16
|
def events
|
@@ -27,7 +27,7 @@ module EveOnline
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def url
|
30
|
-
format(API_ENDPOINT, character_id: character_id)
|
30
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -3,20 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterClones < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v3/characters/%<character_id>s/clones/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v3/characters/%<character_id>s/clones/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@character_id = options
|
14
|
-
end
|
15
|
-
|
16
|
-
def last_clone_jump_date
|
17
|
-
last_clone_jump_date = response['last_clone_jump_date']
|
18
|
-
|
19
|
-
parse_datetime_with_timezone(last_clone_jump_date) if last_clone_jump_date
|
13
|
+
@character_id = options.fetch(:character_id)
|
20
14
|
end
|
21
15
|
|
22
16
|
def home_location
|
@@ -33,6 +27,12 @@ module EveOnline
|
|
33
27
|
end
|
34
28
|
memoize :jump_clones
|
35
29
|
|
30
|
+
def last_clone_jump_date
|
31
|
+
last_clone_jump_date = response['last_clone_jump_date']
|
32
|
+
|
33
|
+
parse_datetime_with_timezone(last_clone_jump_date) if last_clone_jump_date
|
34
|
+
end
|
35
|
+
|
36
36
|
def last_station_change_date
|
37
37
|
last_station_change_date = response['last_station_change_date']
|
38
38
|
|
@@ -44,7 +44,7 @@ module EveOnline
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def url
|
47
|
-
format(API_ENDPOINT, character_id: character_id)
|
47
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
@@ -7,14 +7,14 @@ module EveOnline
|
|
7
7
|
class CharacterFatigue < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/fatigue/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/fatigue/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
14
14
|
def initialize(options)
|
15
15
|
super
|
16
16
|
|
17
|
-
@character_id = options
|
17
|
+
@character_id = options.fetch(:character_id)
|
18
18
|
end
|
19
19
|
|
20
20
|
def_delegators :model, :as_json, :jump_fatigue_expire_date,
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(API_ENDPOINT, character_id: character_id)
|
33
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|