eve_online 0.29.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +62 -0
- data/.ruby-version +1 -1
- data/Appraisals +11 -0
- data/CHANGELOG.md +67 -0
- data/Gemfile +7 -10
- data/Gemfile.lock +77 -68
- data/Gemfile.mutant.lock +67 -59
- data/README.md +414 -136
- data/Rakefile +2 -2
- data/eve_online.gemspec +28 -27
- data/lib/eve_online.rb +226 -185
- data/lib/eve_online/esi/alliance.rb +6 -6
- data/lib/eve_online/esi/alliance_corporations.rb +4 -3
- data/lib/eve_online/esi/alliance_icon.rb +5 -4
- data/lib/eve_online/esi/alliances.rb +3 -2
- data/lib/eve_online/esi/base.rb +42 -32
- data/lib/eve_online/esi/character.rb +7 -6
- data/lib/eve_online/esi/character_assets.rb +4 -4
- data/lib/eve_online/esi/character_assets_locations.rb +4 -4
- data/lib/eve_online/esi/character_assets_names.rb +4 -4
- data/lib/eve_online/esi/character_attributes.rb +6 -6
- data/lib/eve_online/esi/character_blueprints.rb +4 -4
- data/lib/eve_online/esi/character_calendar.rb +4 -4
- data/lib/eve_online/esi/character_calendar_event.rb +4 -5
- data/lib/eve_online/esi/character_clones.rb +7 -7
- data/lib/eve_online/esi/{character_bookmarks.rb → character_contracts.rb} +9 -9
- data/lib/eve_online/esi/character_corporation_history.rb +4 -3
- data/lib/eve_online/esi/character_fatigue.rb +5 -5
- data/lib/eve_online/esi/character_get_mail.rb +37 -0
- data/lib/eve_online/esi/character_implants.rb +3 -3
- data/lib/eve_online/esi/character_industry_jobs.rb +4 -4
- data/lib/eve_online/esi/character_killmails_recent.rb +4 -4
- data/lib/eve_online/esi/character_location.rb +5 -5
- data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
- data/lib/eve_online/esi/character_mail_labels.rb +40 -0
- 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 +5 -4
- data/lib/eve_online/esi/character_ship.rb +4 -4
- data/lib/eve_online/esi/character_skill_queue.rb +3 -3
- data/lib/eve_online/esi/character_skills.rb +6 -6
- 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 +6 -6
- data/lib/eve_online/esi/character_wallet_transactions.rb +41 -0
- data/lib/eve_online/esi/corporation.rb +8 -7
- data/lib/eve_online/esi/corporation_alliance_history.rb +4 -3
- data/lib/eve_online/esi/corporation_assets.rb +5 -5
- data/lib/eve_online/esi/corporation_assets_locations.rb +5 -5
- data/lib/eve_online/esi/corporation_assets_names.rb +5 -5
- data/lib/eve_online/esi/corporation_blueprints.rb +5 -5
- data/lib/eve_online/esi/corporation_industry_jobs.rb +5 -5
- data/lib/eve_online/esi/corporation_killmails_recent.rb +5 -5
- data/lib/eve_online/esi/corporation_loyalty_store_offers.rb +4 -3
- data/lib/eve_online/esi/corporation_npc.rb +20 -0
- data/lib/eve_online/esi/corporation_orders.rb +5 -5
- data/lib/eve_online/esi/dogma_attribute.rb +7 -6
- data/lib/eve_online/esi/dogma_attributes.rb +3 -2
- data/lib/eve_online/esi/dogma_effect.rb +11 -11
- data/lib/eve_online/esi/dogma_effects.rb +3 -2
- data/lib/eve_online/esi/killmail.rb +30 -0
- data/lib/eve_online/esi/market_group.rb +39 -0
- data/lib/eve_online/esi/market_groups.rb +20 -0
- data/lib/eve_online/esi/market_history.rb +5 -4
- data/lib/eve_online/esi/market_prices.rb +27 -0
- data/lib/eve_online/esi/models/aggressor.rb +34 -0
- data/lib/eve_online/esi/models/alliance.rb +7 -7
- data/lib/eve_online/esi/models/alliance_icon.rb +2 -2
- data/lib/eve_online/esi/models/alliance_short.rb +2 -2
- data/lib/eve_online/esi/models/allies.rb +21 -0
- data/lib/eve_online/esi/models/ally.rb +24 -0
- data/lib/eve_online/esi/models/ancestry.rb +6 -6
- data/lib/eve_online/esi/models/asset.rb +8 -8
- data/lib/eve_online/esi/models/asset_location.rb +2 -2
- data/lib/eve_online/esi/models/asset_name.rb +2 -2
- data/lib/eve_online/esi/models/asteroid_belt.rb +3 -3
- data/lib/eve_online/esi/models/attributes.rb +8 -8
- data/lib/eve_online/esi/models/base.rb +2 -2
- data/lib/eve_online/esi/models/bloodline.rb +11 -11
- data/lib/eve_online/esi/models/blueprint.rb +8 -8
- data/lib/eve_online/esi/models/category.rb +4 -4
- data/lib/eve_online/esi/models/character.rb +12 -12
- data/lib/eve_online/esi/models/character_corporation_history.rb +4 -4
- data/lib/eve_online/esi/models/character_industry_job.rb +22 -22
- data/lib/eve_online/esi/models/character_location.rb +3 -3
- data/lib/eve_online/esi/models/character_order.rb +14 -14
- data/lib/eve_online/esi/models/character_portrait.rb +4 -4
- data/lib/eve_online/esi/models/character_ship.rb +3 -3
- data/lib/eve_online/esi/models/constellation.rb +5 -5
- data/lib/eve_online/esi/models/contract.rb +132 -0
- data/lib/eve_online/esi/models/coordinates.rb +3 -3
- data/lib/eve_online/esi/models/corporation.rb +14 -14
- data/lib/eve_online/esi/models/corporation_alliance_history.rb +4 -4
- data/lib/eve_online/esi/models/corporation_industry_job.rb +22 -22
- data/lib/eve_online/esi/models/corporation_order.rb +15 -15
- data/lib/eve_online/esi/models/defender.rb +34 -0
- data/lib/eve_online/esi/models/dogma_attribute.rb +10 -10
- data/lib/eve_online/esi/models/dogma_attribute_short.rb +2 -2
- data/lib/eve_online/esi/models/dogma_attributes.rb +1 -1
- data/lib/eve_online/esi/models/dogma_effect.rb +21 -21
- data/lib/eve_online/esi/models/dogma_effect_modifier.rb +6 -6
- data/lib/eve_online/esi/models/dogma_effect_modifiers.rb +1 -1
- data/lib/eve_online/esi/models/dogma_effect_short.rb +2 -2
- data/lib/eve_online/esi/models/dogma_effects.rb +1 -1
- data/lib/eve_online/esi/models/event.rb +5 -5
- data/lib/eve_online/esi/models/event_details.rb +10 -10
- data/lib/eve_online/esi/models/faction.rb +10 -10
- data/lib/eve_online/esi/models/fatigue.rb +3 -3
- data/lib/eve_online/esi/models/graphic.rb +8 -8
- data/lib/eve_online/esi/models/group.rb +5 -5
- data/lib/eve_online/esi/models/home_location.rb +2 -2
- data/lib/eve_online/esi/models/jump_clone.rb +5 -5
- data/lib/eve_online/esi/models/killmail.rb +47 -0
- data/lib/eve_online/esi/models/killmail_short.rb +2 -2
- data/lib/eve_online/esi/models/loyalty_point.rb +2 -2
- data/lib/eve_online/esi/models/loyalty_store_offer.rb +9 -8
- data/lib/eve_online/esi/models/mail.rb +49 -0
- data/lib/eve_online/esi/models/mail_label.rb +34 -0
- data/lib/eve_online/esi/models/mail_recipient.rb +24 -0
- data/lib/eve_online/esi/models/mail_recipients.rb +21 -0
- data/lib/eve_online/esi/models/market_group.rb +38 -0
- data/lib/eve_online/esi/models/market_history.rb +6 -6
- data/lib/eve_online/esi/models/market_price.rb +29 -0
- data/lib/eve_online/esi/models/moon.rb +4 -4
- data/lib/eve_online/esi/models/notification.rb +7 -7
- data/lib/eve_online/esi/models/offer_required_item.rb +24 -0
- data/lib/eve_online/esi/models/offer_required_items.rb +21 -0
- data/lib/eve_online/esi/models/online.rb +4 -4
- data/lib/eve_online/esi/models/planet.rb +5 -5
- data/lib/eve_online/esi/models/planet_short.rb +3 -3
- data/lib/eve_online/esi/models/position.rb +3 -3
- data/lib/eve_online/esi/models/race.rb +6 -6
- data/lib/eve_online/esi/models/region.rb +7 -8
- data/lib/eve_online/esi/models/server_status.rb +4 -4
- data/lib/eve_online/esi/models/skill.rb +4 -4
- data/lib/eve_online/esi/models/skill_queue_entry.rb +8 -8
- data/lib/eve_online/esi/models/standing.rb +3 -3
- data/lib/eve_online/esi/models/star.rb +8 -8
- data/lib/eve_online/esi/models/stargate.rb +14 -8
- data/lib/eve_online/esi/models/station.rb +12 -12
- data/lib/eve_online/esi/models/system.rb +10 -10
- data/lib/eve_online/esi/models/system_jump.rb +2 -2
- data/lib/eve_online/esi/models/system_kill.rb +4 -4
- data/lib/eve_online/esi/models/type.rb +16 -16
- data/lib/eve_online/esi/models/{wallet_journal_entry.rb → wallet_journal.rb} +16 -16
- data/lib/eve_online/esi/models/wallet_transaction.rb +66 -0
- data/lib/eve_online/esi/models/war.rb +69 -0
- data/lib/eve_online/esi/server_status.rb +4 -3
- data/lib/eve_online/esi/universe_ancestries.rb +4 -3
- data/lib/eve_online/esi/universe_asteroid_belt.rb +5 -4
- data/lib/eve_online/esi/universe_bloodlines.rb +4 -3
- data/lib/eve_online/esi/universe_categories.rb +3 -2
- data/lib/eve_online/esi/universe_category.rb +7 -6
- data/lib/eve_online/esi/universe_constellation.rb +7 -6
- data/lib/eve_online/esi/universe_constellations.rb +3 -2
- data/lib/eve_online/esi/universe_factions.rb +4 -3
- data/lib/eve_online/esi/universe_graphic.rb +7 -6
- data/lib/eve_online/esi/universe_graphics.rb +3 -2
- data/lib/eve_online/esi/universe_group.rb +7 -6
- data/lib/eve_online/esi/universe_groups.rb +4 -3
- data/lib/eve_online/esi/universe_moon.rb +5 -4
- data/lib/eve_online/esi/universe_planet.rb +6 -5
- data/lib/eve_online/esi/universe_races.rb +4 -3
- data/lib/eve_online/esi/universe_region.rb +8 -7
- data/lib/eve_online/esi/universe_regions.rb +3 -2
- data/lib/eve_online/esi/universe_star.rb +6 -6
- data/lib/eve_online/esi/universe_stargate.rb +6 -5
- data/lib/eve_online/esi/universe_station.rb +8 -7
- data/lib/eve_online/esi/universe_structures.rb +4 -3
- data/lib/eve_online/esi/universe_system.rb +8 -7
- data/lib/eve_online/esi/universe_system_jumps.rb +3 -2
- data/lib/eve_online/esi/universe_system_kills.rb +3 -2
- data/lib/eve_online/esi/universe_systems.rb +3 -2
- data/lib/eve_online/esi/universe_type.rb +9 -8
- data/lib/eve_online/esi/universe_types.rb +4 -3
- data/lib/eve_online/esi/war.rb +35 -0
- data/lib/eve_online/esi/war_killmails.rb +5 -4
- data/lib/eve_online/esi/wars.rb +4 -3
- data/lib/eve_online/exceptions/error_limited.rb +8 -0
- data/lib/eve_online/formulas/blueprint_copy_time.rb +47 -0
- data/lib/eve_online/version.rb +1 -1
- metadata +54 -27
- data/.rubocop-thread_safety.yml +0 -9
- data/.rubocop.yml +0 -14
- data/.rubocop_general.yml +0 -102
- data/.rubocop_rspec.yml +0 -65
- data/.rubocop_todo.yml +0 -0
- data/.travis.yml +0 -100
- data/gemfiles/activesupport_42.gemfile +0 -7
- data/gemfiles/activesupport_50.gemfile +0 -7
- data/gemfiles/activesupport_51.gemfile +0 -7
- data/gemfiles/activesupport_52.gemfile +0 -7
- data/gemfiles/activesupport_60.gemfile +0 -7
- data/gemfiles/activesupport_edge.gemfile +0 -7
- data/lib/eve_online/esi/character_bookmark_folders.rb +0 -41
- data/lib/eve_online/esi/models/bookmark.rb +0 -71
- data/lib/eve_online/esi/models/bookmark_folder.rb +0 -24
- data/lib/eve_online/esi/models/stargate_destination.rb +0 -24
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterNotifications < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v5/characters/%<character_id>s/notifications/"
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -25,11 +25,11 @@ module EveOnline
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def scope
|
28
|
-
|
28
|
+
"esi-characters.read_notifications.v1"
|
29
29
|
end
|
30
30
|
|
31
31
|
def path
|
32
|
-
format(
|
32
|
+
format(API_PATH, character_id: character_id)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "forwardable"
|
4
4
|
|
5
5
|
module EveOnline
|
6
6
|
module ESI
|
7
7
|
class CharacterOnline < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH =
|
10
|
+
API_PATH = "/v3/characters/%<character_id>s/online/"
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -18,18 +18,18 @@ module EveOnline
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def_delegators :model, :as_json, :last_login, :last_logout, :logins,
|
21
|
-
|
21
|
+
:online
|
22
22
|
|
23
23
|
def model
|
24
24
|
@model ||= Models::Online.new(response)
|
25
25
|
end
|
26
26
|
|
27
27
|
def scope
|
28
|
-
|
28
|
+
"esi-location.read_online.v1"
|
29
29
|
end
|
30
30
|
|
31
31
|
def path
|
32
|
-
format(
|
32
|
+
format(API_PATH, character_id: character_id)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterOrders < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v2/characters/%<character_id>s/orders/"
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -25,11 +25,11 @@ module EveOnline
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def scope
|
28
|
-
|
28
|
+
"esi-markets.read_character_orders.v1"
|
29
29
|
end
|
30
30
|
|
31
31
|
def path
|
32
|
-
format(
|
32
|
+
format(API_PATH, character_id: character_id)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "forwardable"
|
4
4
|
|
5
5
|
module EveOnline
|
6
6
|
module ESI
|
7
7
|
class CharacterPortrait < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH =
|
10
|
+
API_PATH = "/v2/characters/%<character_id>s/portrait/"
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -23,10 +23,11 @@ module EveOnline
|
|
23
23
|
@model ||= Models::CharacterPortrait.new(response)
|
24
24
|
end
|
25
25
|
|
26
|
-
def scope
|
26
|
+
def scope
|
27
|
+
end
|
27
28
|
|
28
29
|
def path
|
29
|
-
format(
|
30
|
+
format(API_PATH, character_id: character_id)
|
30
31
|
end
|
31
32
|
end
|
32
33
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "forwardable"
|
4
4
|
|
5
5
|
module EveOnline
|
6
6
|
module ESI
|
7
7
|
class CharacterShip < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH =
|
10
|
+
API_PATH = "/v2/characters/%<character_id>s/ship/"
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -24,11 +24,11 @@ module EveOnline
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def scope
|
27
|
-
|
27
|
+
"esi-location.read_ship_type.v1"
|
28
28
|
end
|
29
29
|
|
30
30
|
def path
|
31
|
-
format(
|
31
|
+
format(API_PATH, character_id: character_id)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterSkillQueue < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v2/characters/%<character_id>s/skillqueue/"
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -25,11 +25,11 @@ module EveOnline
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def scope
|
28
|
-
|
28
|
+
"esi-skills.read_skillqueue.v1"
|
29
29
|
end
|
30
30
|
|
31
31
|
def path
|
32
|
-
format(
|
32
|
+
format(API_PATH, character_id: character_id)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterSkills < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v4/characters/%<character_id>s/skills/"
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -24,7 +24,7 @@ module EveOnline
|
|
24
24
|
@skills ||=
|
25
25
|
begin
|
26
26
|
output = []
|
27
|
-
response.fetch(
|
27
|
+
response.fetch("skills").each do |skill|
|
28
28
|
output << Models::Skill.new(skill)
|
29
29
|
end
|
30
30
|
output
|
@@ -32,19 +32,19 @@ module EveOnline
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def total_sp
|
35
|
-
response[
|
35
|
+
response["total_sp"]
|
36
36
|
end
|
37
37
|
|
38
38
|
def unallocated_sp
|
39
|
-
response[
|
39
|
+
response["unallocated_sp"]
|
40
40
|
end
|
41
41
|
|
42
42
|
def scope
|
43
|
-
|
43
|
+
"esi-skills.read_skills.v1"
|
44
44
|
end
|
45
45
|
|
46
46
|
def path
|
47
|
-
format(
|
47
|
+
format(API_PATH, character_id: character_id)
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterStandings < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v1/characters/%<character_id>s/standings/"
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -25,11 +25,11 @@ module EveOnline
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def scope
|
28
|
-
|
28
|
+
"esi-characters.read_standings.v1"
|
29
29
|
end
|
30
30
|
|
31
31
|
def path
|
32
|
-
format(
|
32
|
+
format(API_PATH, character_id: character_id)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterWallet < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v1/characters/%<character_id>s/wallet/"
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -24,11 +24,11 @@ module EveOnline
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def scope
|
27
|
-
|
27
|
+
"esi-wallet.read_character_wallet.v1"
|
28
28
|
end
|
29
29
|
|
30
30
|
def path
|
31
|
-
format(
|
31
|
+
format(API_PATH, character_id: character_id)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterWalletJournal < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v6/characters/%<character_id>s/wallet/journal/"
|
7
7
|
|
8
8
|
attr_reader :character_id, :page
|
9
9
|
|
@@ -18,23 +18,23 @@ module EveOnline
|
|
18
18
|
@wallet_journal_entries ||=
|
19
19
|
begin
|
20
20
|
output = []
|
21
|
-
response.each do |
|
22
|
-
output << Models::
|
21
|
+
response.each do |wallet_journal|
|
22
|
+
output << Models::WalletJournal.new(wallet_journal)
|
23
23
|
end
|
24
24
|
output
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
28
|
def scope
|
29
|
-
|
29
|
+
"esi-wallet.read_character_wallet.v1"
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
32
|
+
def additional_query_params
|
33
33
|
[:page]
|
34
34
|
end
|
35
35
|
|
36
36
|
def path
|
37
|
-
format(
|
37
|
+
format(API_PATH, character_id: character_id)
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
class CharacterWalletTransactions < Base
|
6
|
+
API_PATH = "/v1/characters/%<character_id>s/wallet/transactions/"
|
7
|
+
|
8
|
+
attr_reader :character_id, :from_id
|
9
|
+
|
10
|
+
def initialize(options)
|
11
|
+
super
|
12
|
+
|
13
|
+
@character_id = options.fetch(:character_id)
|
14
|
+
@from_id = options.fetch(:from_id, nil)
|
15
|
+
end
|
16
|
+
|
17
|
+
def wallet_transactions
|
18
|
+
@wallet_transactions ||=
|
19
|
+
begin
|
20
|
+
output = []
|
21
|
+
response.each do |wallet_transaction|
|
22
|
+
output << Models::WalletTransaction.new(wallet_transaction)
|
23
|
+
end
|
24
|
+
output
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def scope
|
29
|
+
"esi-wallet.read_character_wallet.v1"
|
30
|
+
end
|
31
|
+
|
32
|
+
def additional_query_params
|
33
|
+
[:from_id]
|
34
|
+
end
|
35
|
+
|
36
|
+
def path
|
37
|
+
format(API_PATH, character_id: character_id)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "forwardable"
|
4
4
|
|
5
5
|
module EveOnline
|
6
6
|
module ESI
|
7
7
|
class Corporation < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH =
|
10
|
+
API_PATH = "/v4/corporations/%<corporation_id>s/"
|
11
11
|
|
12
12
|
attr_reader :corporation_id
|
13
13
|
|
@@ -18,18 +18,19 @@ module EveOnline
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def_delegators :model, :as_json, :alliance_id, :ceo_id, :creator_id,
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
:date_founded, :description, :faction_id, :home_station_id,
|
22
|
+
:member_count, :name, :shares, :tax_rate, :ticker, :corporation_url,
|
23
|
+
:war_eligible
|
24
24
|
|
25
25
|
def model
|
26
26
|
@model ||= Models::Corporation.new(response)
|
27
27
|
end
|
28
28
|
|
29
|
-
def scope
|
29
|
+
def scope
|
30
|
+
end
|
30
31
|
|
31
32
|
def path
|
32
|
-
format(
|
33
|
+
format(API_PATH, corporation_id: corporation_id)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationAllianceHistory < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v2/corporations/%<corporation_id>s/alliancehistory/"
|
7
7
|
|
8
8
|
attr_reader :corporation_id
|
9
9
|
|
@@ -24,14 +24,15 @@ module EveOnline
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
def scope
|
27
|
+
def scope
|
28
|
+
end
|
28
29
|
|
29
30
|
def roles
|
30
31
|
[]
|
31
32
|
end
|
32
33
|
|
33
34
|
def path
|
34
|
-
format(
|
35
|
+
format(API_PATH, corporation_id: corporation_id)
|
35
36
|
end
|
36
37
|
end
|
37
38
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationAssets < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v5/corporations/%<corporation_id>s/assets/"
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :page
|
9
9
|
|
@@ -26,19 +26,19 @@ module EveOnline
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def scope
|
29
|
-
|
29
|
+
"esi-assets.read_corporation_assets.v1"
|
30
30
|
end
|
31
31
|
|
32
32
|
def roles
|
33
|
-
[
|
33
|
+
["Director"]
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def additional_query_params
|
37
37
|
[:page]
|
38
38
|
end
|
39
39
|
|
40
40
|
def path
|
41
|
-
format(
|
41
|
+
format(API_PATH, corporation_id: corporation_id)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationAssetsLocations < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v2/corporations/%<corporation_id>s/assets/locations/"
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :item_ids
|
9
9
|
|
@@ -26,7 +26,7 @@ module EveOnline
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def http_method
|
29
|
-
|
29
|
+
"Post"
|
30
30
|
end
|
31
31
|
|
32
32
|
def payload
|
@@ -34,11 +34,11 @@ module EveOnline
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def scope
|
37
|
-
|
37
|
+
"esi-assets.read_corporation_assets.v1"
|
38
38
|
end
|
39
39
|
|
40
40
|
def roles
|
41
|
-
[
|
41
|
+
["Director"]
|
42
42
|
end
|
43
43
|
|
44
44
|
def etag
|
@@ -46,7 +46,7 @@ module EveOnline
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def path
|
49
|
-
format(
|
49
|
+
format(API_PATH, corporation_id: corporation_id)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|