eve_online 0.29.0 → 0.30.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 +98 -0
- data/.ruby-version +1 -1
- data/Appraisals +23 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +7 -10
- data/Gemfile.lock +55 -50
- data/Gemfile.mutant.lock +42 -33
- data/README.md +108 -7
- data/Rakefile +2 -2
- data/eve_online.gemspec +28 -27
- data/lib/eve_online.rb +197 -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 +29 -28
- 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_bookmark_folders.rb +4 -4
- data/lib/eve_online/esi/character_bookmarks.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_corporation_history.rb +4 -3
- data/lib/eve_online/esi/character_fatigue.rb +5 -5
- 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_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 +7 -7
- data/lib/eve_online/esi/character_standings.rb +3 -3
- data/lib/eve_online/esi/character_wallet.rb +4 -4
- data/lib/eve_online/esi/character_wallet_journal.rb +4 -4
- 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_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/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/models/aggressor.rb +34 -0
- data/lib/eve_online/esi/models/alliance.rb +8 -8
- data/lib/eve_online/esi/models/alliance_icon.rb +3 -3
- data/lib/eve_online/esi/models/alliance_short.rb +3 -3
- 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 +7 -7
- data/lib/eve_online/esi/models/asset.rb +9 -9
- data/lib/eve_online/esi/models/asset_location.rb +3 -3
- data/lib/eve_online/esi/models/asset_name.rb +3 -3
- data/lib/eve_online/esi/models/asteroid_belt.rb +4 -4
- data/lib/eve_online/esi/models/attributes.rb +9 -9
- data/lib/eve_online/esi/models/base.rb +2 -2
- data/lib/eve_online/esi/models/bloodline.rb +12 -12
- data/lib/eve_online/esi/models/blueprint.rb +9 -9
- data/lib/eve_online/esi/models/bookmark.rb +11 -11
- data/lib/eve_online/esi/models/bookmark_folder.rb +3 -3
- data/lib/eve_online/esi/models/category.rb +5 -5
- data/lib/eve_online/esi/models/character.rb +13 -13
- data/lib/eve_online/esi/models/character_corporation_history.rb +5 -5
- data/lib/eve_online/esi/models/character_industry_job.rb +23 -23
- data/lib/eve_online/esi/models/character_location.rb +4 -4
- data/lib/eve_online/esi/models/character_order.rb +15 -15
- data/lib/eve_online/esi/models/character_portrait.rb +5 -5
- data/lib/eve_online/esi/models/character_ship.rb +4 -4
- data/lib/eve_online/esi/models/constellation.rb +6 -6
- data/lib/eve_online/esi/models/coordinates.rb +4 -4
- data/lib/eve_online/esi/models/corporation.rb +15 -15
- data/lib/eve_online/esi/models/corporation_alliance_history.rb +5 -5
- data/lib/eve_online/esi/models/corporation_industry_job.rb +23 -23
- data/lib/eve_online/esi/models/corporation_order.rb +16 -16
- data/lib/eve_online/esi/models/defender.rb +34 -0
- data/lib/eve_online/esi/models/dogma_attribute.rb +11 -11
- data/lib/eve_online/esi/models/dogma_attribute_short.rb +3 -3
- data/lib/eve_online/esi/models/dogma_attributes.rb +1 -1
- data/lib/eve_online/esi/models/dogma_effect.rb +22 -22
- data/lib/eve_online/esi/models/dogma_effect_modifier.rb +7 -7
- data/lib/eve_online/esi/models/dogma_effect_modifiers.rb +1 -1
- data/lib/eve_online/esi/models/dogma_effect_short.rb +3 -3
- data/lib/eve_online/esi/models/dogma_effects.rb +1 -1
- data/lib/eve_online/esi/models/event.rb +6 -6
- data/lib/eve_online/esi/models/event_details.rb +11 -11
- data/lib/eve_online/esi/models/faction.rb +11 -11
- data/lib/eve_online/esi/models/fatigue.rb +4 -4
- data/lib/eve_online/esi/models/graphic.rb +9 -9
- data/lib/eve_online/esi/models/group.rb +6 -6
- data/lib/eve_online/esi/models/home_location.rb +3 -3
- data/lib/eve_online/esi/models/jump_clone.rb +6 -6
- data/lib/eve_online/esi/models/killmail_short.rb +3 -3
- data/lib/eve_online/esi/models/loyalty_point.rb +3 -3
- data/lib/eve_online/esi/models/loyalty_store_offer.rb +10 -9
- data/lib/eve_online/esi/models/market_group.rb +38 -0
- data/lib/eve_online/esi/models/market_history.rb +7 -7
- data/lib/eve_online/esi/models/moon.rb +5 -5
- data/lib/eve_online/esi/models/notification.rb +8 -8
- 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 +5 -5
- data/lib/eve_online/esi/models/planet.rb +6 -6
- data/lib/eve_online/esi/models/planet_short.rb +4 -4
- data/lib/eve_online/esi/models/position.rb +4 -4
- data/lib/eve_online/esi/models/race.rb +5 -5
- data/lib/eve_online/esi/models/region.rb +5 -5
- data/lib/eve_online/esi/models/server_status.rb +5 -5
- data/lib/eve_online/esi/models/skill.rb +5 -5
- data/lib/eve_online/esi/models/skill_queue_entry.rb +9 -9
- data/lib/eve_online/esi/models/standing.rb +4 -4
- data/lib/eve_online/esi/models/star.rb +9 -9
- data/lib/eve_online/esi/models/stargate.rb +7 -7
- data/lib/eve_online/esi/models/stargate_destination.rb +3 -3
- data/lib/eve_online/esi/models/station.rb +13 -13
- data/lib/eve_online/esi/models/system.rb +11 -11
- data/lib/eve_online/esi/models/system_jump.rb +3 -3
- data/lib/eve_online/esi/models/system_kill.rb +5 -5
- data/lib/eve_online/esi/models/type.rb +17 -17
- data/lib/eve_online/esi/models/wallet_journal_entry.rb +14 -14
- 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 +7 -6
- 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/version.rb +1 -1
- metadata +30 -15
- 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
@@ -7,16 +7,16 @@ module EveOnline
|
|
7
7
|
def as_json
|
8
8
|
{
|
9
9
|
ship_jumps: ship_jumps,
|
10
|
-
system_id: system_id
|
10
|
+
system_id: system_id,
|
11
11
|
}
|
12
12
|
end
|
13
13
|
|
14
14
|
def ship_jumps
|
15
|
-
options[
|
15
|
+
options["ship_jumps"]
|
16
16
|
end
|
17
17
|
|
18
18
|
def system_id
|
19
|
-
options[
|
19
|
+
options["system_id"]
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -9,24 +9,24 @@ module EveOnline
|
|
9
9
|
npc_kills: npc_kills,
|
10
10
|
pod_kills: pod_kills,
|
11
11
|
ship_kills: ship_kills,
|
12
|
-
system_id: system_id
|
12
|
+
system_id: system_id,
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
16
|
def npc_kills
|
17
|
-
options[
|
17
|
+
options["npc_kills"]
|
18
18
|
end
|
19
19
|
|
20
20
|
def pod_kills
|
21
|
-
options[
|
21
|
+
options["pod_kills"]
|
22
22
|
end
|
23
23
|
|
24
24
|
def ship_kills
|
25
|
-
options[
|
25
|
+
options["ship_kills"]
|
26
26
|
end
|
27
27
|
|
28
28
|
def system_id
|
29
|
-
options[
|
29
|
+
options["system_id"]
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -19,72 +19,72 @@ module EveOnline
|
|
19
19
|
published: published,
|
20
20
|
radius: radius,
|
21
21
|
type_id: type_id,
|
22
|
-
volume: volume
|
22
|
+
volume: volume,
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
def capacity
|
27
|
-
options[
|
27
|
+
options["capacity"]
|
28
28
|
end
|
29
29
|
|
30
30
|
def description
|
31
|
-
options[
|
31
|
+
options["description"]
|
32
32
|
end
|
33
33
|
|
34
34
|
def graphic_id
|
35
|
-
options[
|
35
|
+
options["graphic_id"]
|
36
36
|
end
|
37
37
|
|
38
38
|
def group_id
|
39
|
-
options[
|
39
|
+
options["group_id"]
|
40
40
|
end
|
41
41
|
|
42
42
|
def icon_id
|
43
|
-
options[
|
43
|
+
options["icon_id"]
|
44
44
|
end
|
45
45
|
|
46
46
|
def market_group_id
|
47
|
-
options[
|
47
|
+
options["market_group_id"]
|
48
48
|
end
|
49
49
|
|
50
50
|
def mass
|
51
|
-
options[
|
51
|
+
options["mass"]
|
52
52
|
end
|
53
53
|
|
54
54
|
def name
|
55
|
-
options[
|
55
|
+
options["name"]
|
56
56
|
end
|
57
57
|
|
58
58
|
def packaged_volume
|
59
|
-
options[
|
59
|
+
options["packaged_volume"]
|
60
60
|
end
|
61
61
|
|
62
62
|
def portion_size
|
63
|
-
options[
|
63
|
+
options["portion_size"]
|
64
64
|
end
|
65
65
|
|
66
66
|
def published
|
67
|
-
options[
|
67
|
+
options["published"]
|
68
68
|
end
|
69
69
|
|
70
70
|
def radius
|
71
|
-
options[
|
71
|
+
options["radius"]
|
72
72
|
end
|
73
73
|
|
74
74
|
def type_id
|
75
|
-
options[
|
75
|
+
options["type_id"]
|
76
76
|
end
|
77
77
|
|
78
78
|
def volume
|
79
|
-
options[
|
79
|
+
options["volume"]
|
80
80
|
end
|
81
81
|
|
82
82
|
def dogma_attributes
|
83
|
-
@dogma_attributes ||= DogmaAttributes.new(options[
|
83
|
+
@dogma_attributes ||= DogmaAttributes.new(options["dogma_attributes"]).dogma_attributes
|
84
84
|
end
|
85
85
|
|
86
86
|
def dogma_effects
|
87
|
-
@dogma_effects ||= DogmaEffects.new(options[
|
87
|
+
@dogma_effects ||= DogmaEffects.new(options["dogma_effects"]).dogma_effects
|
88
88
|
end
|
89
89
|
end
|
90
90
|
end
|
@@ -18,62 +18,62 @@ module EveOnline
|
|
18
18
|
ref_type: ref_type,
|
19
19
|
second_party_id: second_party_id,
|
20
20
|
tax: tax,
|
21
|
-
tax_receiver_id: tax_receiver_id
|
21
|
+
tax_receiver_id: tax_receiver_id,
|
22
22
|
}
|
23
23
|
end
|
24
24
|
|
25
25
|
def amount
|
26
|
-
options[
|
26
|
+
options["amount"]
|
27
27
|
end
|
28
28
|
|
29
29
|
def balance
|
30
|
-
options[
|
30
|
+
options["balance"]
|
31
31
|
end
|
32
32
|
|
33
33
|
def context_id
|
34
|
-
options[
|
34
|
+
options["context_id"]
|
35
35
|
end
|
36
36
|
|
37
37
|
def context_id_type
|
38
|
-
options[
|
38
|
+
options["context_id_type"]
|
39
39
|
end
|
40
40
|
|
41
41
|
def date
|
42
|
-
date = options[
|
42
|
+
date = options["date"]
|
43
43
|
|
44
44
|
parse_datetime_with_timezone(date) if date
|
45
45
|
end
|
46
46
|
|
47
47
|
def description
|
48
|
-
options[
|
48
|
+
options["description"]
|
49
49
|
end
|
50
50
|
|
51
51
|
def first_party_id
|
52
|
-
options[
|
52
|
+
options["first_party_id"]
|
53
53
|
end
|
54
54
|
|
55
55
|
def id
|
56
|
-
options[
|
56
|
+
options["id"]
|
57
57
|
end
|
58
58
|
|
59
59
|
def reason
|
60
|
-
options[
|
60
|
+
options["reason"]
|
61
61
|
end
|
62
62
|
|
63
63
|
def ref_type
|
64
|
-
options[
|
64
|
+
options["ref_type"]
|
65
65
|
end
|
66
66
|
|
67
67
|
def second_party_id
|
68
|
-
options[
|
68
|
+
options["second_party_id"]
|
69
69
|
end
|
70
70
|
|
71
71
|
def tax
|
72
|
-
options[
|
72
|
+
options["tax"]
|
73
73
|
end
|
74
74
|
|
75
75
|
def tax_receiver_id
|
76
|
-
options[
|
76
|
+
options["tax_receiver_id"]
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
module Models
|
6
|
+
class War < Base
|
7
|
+
def as_json
|
8
|
+
{
|
9
|
+
declared: declared,
|
10
|
+
finished: finished,
|
11
|
+
war_id: war_id,
|
12
|
+
mutual: mutual,
|
13
|
+
open_for_allies: open_for_allies,
|
14
|
+
retracted: retracted,
|
15
|
+
started: started,
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
def declared
|
20
|
+
declared = options["declared"]
|
21
|
+
|
22
|
+
parse_datetime_with_timezone(declared) if declared
|
23
|
+
end
|
24
|
+
|
25
|
+
def finished
|
26
|
+
finished = options["finished"]
|
27
|
+
|
28
|
+
parse_datetime_with_timezone(finished) if finished
|
29
|
+
end
|
30
|
+
|
31
|
+
def war_id
|
32
|
+
options["id"]
|
33
|
+
end
|
34
|
+
|
35
|
+
def mutual
|
36
|
+
options["mutual"]
|
37
|
+
end
|
38
|
+
|
39
|
+
def open_for_allies
|
40
|
+
options["open_for_allies"]
|
41
|
+
end
|
42
|
+
|
43
|
+
def retracted
|
44
|
+
retracted = options["retracted"]
|
45
|
+
|
46
|
+
parse_datetime_with_timezone(retracted) if retracted
|
47
|
+
end
|
48
|
+
|
49
|
+
def started
|
50
|
+
started = options["started"]
|
51
|
+
|
52
|
+
parse_datetime_with_timezone(started) if started
|
53
|
+
end
|
54
|
+
|
55
|
+
def aggressor
|
56
|
+
@aggressor ||= Aggressor.new(options["aggressor"])
|
57
|
+
end
|
58
|
+
|
59
|
+
def allies
|
60
|
+
@allies ||= Allies.new(options["allies"]).allies
|
61
|
+
end
|
62
|
+
|
63
|
+
def defender
|
64
|
+
@defender ||= Defender.new(options["defender"])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
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 ServerStatus < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH =
|
10
|
+
API_PATH = "/v1/status/"
|
11
11
|
|
12
12
|
def_delegators :model, :as_json, :players, :server_version, :start_time, :vip
|
13
13
|
|
@@ -15,7 +15,8 @@ module EveOnline
|
|
15
15
|
@model ||= Models::ServerStatus.new(response)
|
16
16
|
end
|
17
17
|
|
18
|
-
def scope
|
18
|
+
def scope
|
19
|
+
end
|
19
20
|
|
20
21
|
def path
|
21
22
|
API_PATH
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class UniverseAncestries < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v1/universe/ancestries/"
|
7
7
|
|
8
8
|
def ancestries
|
9
9
|
@ancestries ||=
|
@@ -16,9 +16,10 @@ module EveOnline
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
def scope
|
19
|
+
def scope
|
20
|
+
end
|
20
21
|
|
21
|
-
def
|
22
|
+
def additional_query_params
|
22
23
|
[:language]
|
23
24
|
end
|
24
25
|
|
@@ -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 UniverseAsteroidBelt < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH =
|
10
|
+
API_PATH = "/v1/universe/asteroid_belts/%<asteroid_belt_id>s/"
|
11
11
|
|
12
12
|
attr_reader :id
|
13
13
|
|
@@ -23,10 +23,11 @@ module EveOnline
|
|
23
23
|
@model ||= Models::AsteroidBelt.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, asteroid_belt_id: id)
|
30
31
|
end
|
31
32
|
end
|
32
33
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class UniverseBloodlines < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v1/universe/bloodlines/"
|
7
7
|
|
8
8
|
def bloodlines
|
9
9
|
@bloodlines ||=
|
@@ -16,9 +16,10 @@ module EveOnline
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
def scope
|
19
|
+
def scope
|
20
|
+
end
|
20
21
|
|
21
|
-
def
|
22
|
+
def additional_query_params
|
22
23
|
[:language]
|
23
24
|
end
|
24
25
|
|
@@ -3,13 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class UniverseCategories < Base
|
6
|
-
API_PATH =
|
6
|
+
API_PATH = "/v1/universe/categories/"
|
7
7
|
|
8
8
|
def category_ids
|
9
9
|
response
|
10
10
|
end
|
11
11
|
|
12
|
-
def scope
|
12
|
+
def scope
|
13
|
+
end
|
13
14
|
|
14
15
|
def path
|
15
16
|
API_PATH
|
@@ -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 UniverseCategory < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH =
|
10
|
+
API_PATH = "/v1/universe/categories/%<category_id>s/"
|
11
11
|
|
12
12
|
attr_reader :id
|
13
13
|
|
@@ -18,20 +18,21 @@ module EveOnline
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def_delegators :model, :as_json, :category_id, :name, :published,
|
21
|
-
|
21
|
+
:group_ids
|
22
22
|
|
23
23
|
def model
|
24
24
|
@model ||= Models::Category.new(response)
|
25
25
|
end
|
26
26
|
|
27
|
-
def scope
|
27
|
+
def scope
|
28
|
+
end
|
28
29
|
|
29
|
-
def
|
30
|
+
def additional_query_params
|
30
31
|
[:language]
|
31
32
|
end
|
32
33
|
|
33
34
|
def path
|
34
|
-
format(
|
35
|
+
format(API_PATH, category_id: id)
|
35
36
|
end
|
36
37
|
end
|
37
38
|
end
|