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
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterImplants < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/implants/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/implants/?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 implants
|
@@ -22,7 +22,7 @@ module EveOnline
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def url
|
25
|
-
format(API_ENDPOINT, character_id: character_id)
|
25
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -3,21 +3,21 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterIndustryJobs < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/industry/jobs/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/industry/jobs/?datasource=%<datasource>s&include_completed=%<include_completed>s'
|
7
7
|
|
8
8
|
attr_reader :character_id, :include_completed
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@character_id = options
|
14
|
-
@include_completed = options
|
13
|
+
@character_id = options.fetch(:character_id)
|
14
|
+
@include_completed = options.fetch(:include_completed, false)
|
15
15
|
end
|
16
16
|
|
17
17
|
def jobs
|
18
18
|
output = []
|
19
19
|
response.each do |job|
|
20
|
-
output << Models::
|
20
|
+
output << Models::CharacterIndustryJob.new(job)
|
21
21
|
end
|
22
22
|
output
|
23
23
|
end
|
@@ -28,7 +28,7 @@ module EveOnline
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def url
|
31
|
-
format(API_ENDPOINT, character_id: character_id, include_completed: include_completed)
|
31
|
+
format(API_ENDPOINT, character_id: character_id, include_completed: include_completed, datasource: datasource)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterLoyaltyPoints < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/loyalty/points/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/loyalty/points/?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 loyalty_points
|
@@ -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 CharacterNotifications < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/notifications/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/notifications/?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 notifications
|
@@ -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,18 +7,18 @@ module EveOnline
|
|
7
7
|
class CharacterOnline < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/online/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/online/?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
|
-
:
|
20
|
+
def_delegators :model, :as_json, :last_login, :last_logout, :logins,
|
21
|
+
:online
|
22
22
|
|
23
23
|
def model
|
24
24
|
Models::Online.new(response)
|
@@ -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
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterOrders < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/orders/?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 orders
|
@@ -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,18 +7,17 @@ module EveOnline
|
|
7
7
|
class CharacterPortrait < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/portrait/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/portrait/?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
|
-
:gigantic
|
20
|
+
def_delegators :model, :as_json, :medium, :large, :huge, :small
|
22
21
|
|
23
22
|
def model
|
24
23
|
Models::CharacterPortrait.new(response)
|
@@ -28,7 +27,7 @@ module EveOnline
|
|
28
27
|
def scope; end
|
29
28
|
|
30
29
|
def url
|
31
|
-
format(API_ENDPOINT, character_id: character_id)
|
30
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
32
31
|
end
|
33
32
|
end
|
34
33
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterSkillQueue < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/skillqueue/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/skillqueue/?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 skills
|
@@ -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 CharacterSkills < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v4/characters/%<character_id>s/skills/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v4/characters/%<character_id>s/skills/?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 as_json
|
@@ -20,14 +20,6 @@ module EveOnline
|
|
20
20
|
}
|
21
21
|
end
|
22
22
|
|
23
|
-
def total_sp
|
24
|
-
response['total_sp']
|
25
|
-
end
|
26
|
-
|
27
|
-
def unallocated_sp
|
28
|
-
response['unallocated_sp']
|
29
|
-
end
|
30
|
-
|
31
23
|
def skills
|
32
24
|
output = []
|
33
25
|
response.fetch('skills').each do |skill|
|
@@ -37,12 +29,20 @@ module EveOnline
|
|
37
29
|
end
|
38
30
|
memoize :skills
|
39
31
|
|
32
|
+
def total_sp
|
33
|
+
response['total_sp']
|
34
|
+
end
|
35
|
+
|
36
|
+
def unallocated_sp
|
37
|
+
response['unallocated_sp']
|
38
|
+
end
|
39
|
+
|
40
40
|
def scope
|
41
41
|
'esi-skills.read_skills.v1'
|
42
42
|
end
|
43
43
|
|
44
44
|
def url
|
45
|
-
format(API_ENDPOINT, character_id: character_id)
|
45
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterStandings < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/standings/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/standings/?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 standings
|
@@ -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 CharacterWallet < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/wallet/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/wallet/?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 as_json
|
@@ -28,7 +28,7 @@ module EveOnline
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def url
|
31
|
-
format(API_ENDPOINT, character_id: character_id)
|
31
|
+
format(API_ENDPOINT, character_id: character_id, datasource: datasource)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterWalletJournal < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v4/characters/%<character_id>s/wallet/journal/?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 wallet_journal_entries
|
@@ -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,20 +7,20 @@ module EveOnline
|
|
7
7
|
class Corporation < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v4/corporations/%<corporation_id>s/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v4/corporations/%<corporation_id>s/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :corporation_id
|
13
13
|
|
14
14
|
def initialize(options)
|
15
15
|
super
|
16
16
|
|
17
|
-
@corporation_id = options
|
17
|
+
@corporation_id = options.fetch(:corporation_id)
|
18
18
|
end
|
19
19
|
|
20
|
-
def_delegators :model, :as_json, :
|
21
|
-
:
|
22
|
-
:
|
23
|
-
:
|
20
|
+
def_delegators :model, :as_json, :alliance_id, :ceo_id, :creator_id,
|
21
|
+
:date_founded, :description, :faction_id,
|
22
|
+
:home_station_id, :member_count, :name, :shares,
|
23
|
+
:tax_rate, :ticker, :corporation_url
|
24
24
|
|
25
25
|
def model
|
26
26
|
Models::Corporation.new(response)
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
def scope; end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(API_ENDPOINT, corporation_id: corporation_id)
|
33
|
+
format(API_ENDPOINT, corporation_id: corporation_id, datasource: datasource)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationBlueprints < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/corporations/%<corporation_id>s/blueprints/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/corporations/%<corporation_id>s/blueprints/?datasource=%<datasource>s&page=1'
|
7
7
|
|
8
8
|
attr_reader :corporation_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@corporation_id = options
|
13
|
+
@corporation_id = options.fetch(:corporation_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, corporation_id: corporation_id)
|
30
|
+
format(API_ENDPOINT, corporation_id: corporation_id, datasource: datasource)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -3,21 +3,21 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationIndustryJobs < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/corporations/%<corporation_id>s/industry/jobs/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/corporations/%<corporation_id>s/industry/jobs/?datasource=%<datasource>s&include_completed=%<include_completed>s'
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :include_completed
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@corporation_id = options
|
14
|
-
@include_completed = options
|
13
|
+
@corporation_id = options.fetch(:corporation_id)
|
14
|
+
@include_completed = options.fetch(:include_completed, false)
|
15
15
|
end
|
16
16
|
|
17
17
|
def jobs
|
18
18
|
output = []
|
19
19
|
response.each do |job|
|
20
|
-
output << Models::
|
20
|
+
output << Models::CorporationIndustryJob.new(job)
|
21
21
|
end
|
22
22
|
output
|
23
23
|
end
|
@@ -28,7 +28,7 @@ module EveOnline
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def url
|
31
|
-
format(API_ENDPOINT, corporation_id: corporation_id, include_completed: include_completed)
|
31
|
+
format(API_ENDPOINT, corporation_id: corporation_id, include_completed: include_completed, datasource: datasource)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|