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.
Files changed (184) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +98 -0
  3. data/.ruby-version +1 -1
  4. data/Appraisals +23 -0
  5. data/CHANGELOG.md +16 -0
  6. data/Gemfile +7 -10
  7. data/Gemfile.lock +55 -50
  8. data/Gemfile.mutant.lock +42 -33
  9. data/README.md +108 -7
  10. data/Rakefile +2 -2
  11. data/eve_online.gemspec +28 -27
  12. data/lib/eve_online.rb +197 -185
  13. data/lib/eve_online/esi/alliance.rb +6 -6
  14. data/lib/eve_online/esi/alliance_corporations.rb +4 -3
  15. data/lib/eve_online/esi/alliance_icon.rb +5 -4
  16. data/lib/eve_online/esi/alliances.rb +3 -2
  17. data/lib/eve_online/esi/base.rb +29 -28
  18. data/lib/eve_online/esi/character.rb +7 -6
  19. data/lib/eve_online/esi/character_assets.rb +4 -4
  20. data/lib/eve_online/esi/character_assets_locations.rb +4 -4
  21. data/lib/eve_online/esi/character_assets_names.rb +4 -4
  22. data/lib/eve_online/esi/character_attributes.rb +6 -6
  23. data/lib/eve_online/esi/character_blueprints.rb +4 -4
  24. data/lib/eve_online/esi/character_bookmark_folders.rb +4 -4
  25. data/lib/eve_online/esi/character_bookmarks.rb +4 -4
  26. data/lib/eve_online/esi/character_calendar.rb +4 -4
  27. data/lib/eve_online/esi/character_calendar_event.rb +4 -5
  28. data/lib/eve_online/esi/character_clones.rb +7 -7
  29. data/lib/eve_online/esi/character_corporation_history.rb +4 -3
  30. data/lib/eve_online/esi/character_fatigue.rb +5 -5
  31. data/lib/eve_online/esi/character_implants.rb +3 -3
  32. data/lib/eve_online/esi/character_industry_jobs.rb +4 -4
  33. data/lib/eve_online/esi/character_killmails_recent.rb +4 -4
  34. data/lib/eve_online/esi/character_location.rb +5 -5
  35. data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
  36. data/lib/eve_online/esi/character_notifications.rb +3 -3
  37. data/lib/eve_online/esi/character_online.rb +5 -5
  38. data/lib/eve_online/esi/character_orders.rb +3 -3
  39. data/lib/eve_online/esi/character_portrait.rb +5 -4
  40. data/lib/eve_online/esi/character_ship.rb +4 -4
  41. data/lib/eve_online/esi/character_skill_queue.rb +3 -3
  42. data/lib/eve_online/esi/character_skills.rb +7 -7
  43. data/lib/eve_online/esi/character_standings.rb +3 -3
  44. data/lib/eve_online/esi/character_wallet.rb +4 -4
  45. data/lib/eve_online/esi/character_wallet_journal.rb +4 -4
  46. data/lib/eve_online/esi/corporation.rb +8 -7
  47. data/lib/eve_online/esi/corporation_alliance_history.rb +4 -3
  48. data/lib/eve_online/esi/corporation_assets.rb +5 -5
  49. data/lib/eve_online/esi/corporation_assets_locations.rb +5 -5
  50. data/lib/eve_online/esi/corporation_assets_names.rb +5 -5
  51. data/lib/eve_online/esi/corporation_blueprints.rb +5 -5
  52. data/lib/eve_online/esi/corporation_industry_jobs.rb +5 -5
  53. data/lib/eve_online/esi/corporation_killmails_recent.rb +5 -5
  54. data/lib/eve_online/esi/corporation_loyalty_store_offers.rb +4 -3
  55. data/lib/eve_online/esi/corporation_orders.rb +5 -5
  56. data/lib/eve_online/esi/dogma_attribute.rb +7 -6
  57. data/lib/eve_online/esi/dogma_attributes.rb +3 -2
  58. data/lib/eve_online/esi/dogma_effect.rb +11 -11
  59. data/lib/eve_online/esi/dogma_effects.rb +3 -2
  60. data/lib/eve_online/esi/market_group.rb +39 -0
  61. data/lib/eve_online/esi/market_groups.rb +20 -0
  62. data/lib/eve_online/esi/market_history.rb +5 -4
  63. data/lib/eve_online/esi/models/aggressor.rb +34 -0
  64. data/lib/eve_online/esi/models/alliance.rb +8 -8
  65. data/lib/eve_online/esi/models/alliance_icon.rb +3 -3
  66. data/lib/eve_online/esi/models/alliance_short.rb +3 -3
  67. data/lib/eve_online/esi/models/allies.rb +21 -0
  68. data/lib/eve_online/esi/models/ally.rb +24 -0
  69. data/lib/eve_online/esi/models/ancestry.rb +7 -7
  70. data/lib/eve_online/esi/models/asset.rb +9 -9
  71. data/lib/eve_online/esi/models/asset_location.rb +3 -3
  72. data/lib/eve_online/esi/models/asset_name.rb +3 -3
  73. data/lib/eve_online/esi/models/asteroid_belt.rb +4 -4
  74. data/lib/eve_online/esi/models/attributes.rb +9 -9
  75. data/lib/eve_online/esi/models/base.rb +2 -2
  76. data/lib/eve_online/esi/models/bloodline.rb +12 -12
  77. data/lib/eve_online/esi/models/blueprint.rb +9 -9
  78. data/lib/eve_online/esi/models/bookmark.rb +11 -11
  79. data/lib/eve_online/esi/models/bookmark_folder.rb +3 -3
  80. data/lib/eve_online/esi/models/category.rb +5 -5
  81. data/lib/eve_online/esi/models/character.rb +13 -13
  82. data/lib/eve_online/esi/models/character_corporation_history.rb +5 -5
  83. data/lib/eve_online/esi/models/character_industry_job.rb +23 -23
  84. data/lib/eve_online/esi/models/character_location.rb +4 -4
  85. data/lib/eve_online/esi/models/character_order.rb +15 -15
  86. data/lib/eve_online/esi/models/character_portrait.rb +5 -5
  87. data/lib/eve_online/esi/models/character_ship.rb +4 -4
  88. data/lib/eve_online/esi/models/constellation.rb +6 -6
  89. data/lib/eve_online/esi/models/coordinates.rb +4 -4
  90. data/lib/eve_online/esi/models/corporation.rb +15 -15
  91. data/lib/eve_online/esi/models/corporation_alliance_history.rb +5 -5
  92. data/lib/eve_online/esi/models/corporation_industry_job.rb +23 -23
  93. data/lib/eve_online/esi/models/corporation_order.rb +16 -16
  94. data/lib/eve_online/esi/models/defender.rb +34 -0
  95. data/lib/eve_online/esi/models/dogma_attribute.rb +11 -11
  96. data/lib/eve_online/esi/models/dogma_attribute_short.rb +3 -3
  97. data/lib/eve_online/esi/models/dogma_attributes.rb +1 -1
  98. data/lib/eve_online/esi/models/dogma_effect.rb +22 -22
  99. data/lib/eve_online/esi/models/dogma_effect_modifier.rb +7 -7
  100. data/lib/eve_online/esi/models/dogma_effect_modifiers.rb +1 -1
  101. data/lib/eve_online/esi/models/dogma_effect_short.rb +3 -3
  102. data/lib/eve_online/esi/models/dogma_effects.rb +1 -1
  103. data/lib/eve_online/esi/models/event.rb +6 -6
  104. data/lib/eve_online/esi/models/event_details.rb +11 -11
  105. data/lib/eve_online/esi/models/faction.rb +11 -11
  106. data/lib/eve_online/esi/models/fatigue.rb +4 -4
  107. data/lib/eve_online/esi/models/graphic.rb +9 -9
  108. data/lib/eve_online/esi/models/group.rb +6 -6
  109. data/lib/eve_online/esi/models/home_location.rb +3 -3
  110. data/lib/eve_online/esi/models/jump_clone.rb +6 -6
  111. data/lib/eve_online/esi/models/killmail_short.rb +3 -3
  112. data/lib/eve_online/esi/models/loyalty_point.rb +3 -3
  113. data/lib/eve_online/esi/models/loyalty_store_offer.rb +10 -9
  114. data/lib/eve_online/esi/models/market_group.rb +38 -0
  115. data/lib/eve_online/esi/models/market_history.rb +7 -7
  116. data/lib/eve_online/esi/models/moon.rb +5 -5
  117. data/lib/eve_online/esi/models/notification.rb +8 -8
  118. data/lib/eve_online/esi/models/offer_required_item.rb +24 -0
  119. data/lib/eve_online/esi/models/offer_required_items.rb +21 -0
  120. data/lib/eve_online/esi/models/online.rb +5 -5
  121. data/lib/eve_online/esi/models/planet.rb +6 -6
  122. data/lib/eve_online/esi/models/planet_short.rb +4 -4
  123. data/lib/eve_online/esi/models/position.rb +4 -4
  124. data/lib/eve_online/esi/models/race.rb +5 -5
  125. data/lib/eve_online/esi/models/region.rb +5 -5
  126. data/lib/eve_online/esi/models/server_status.rb +5 -5
  127. data/lib/eve_online/esi/models/skill.rb +5 -5
  128. data/lib/eve_online/esi/models/skill_queue_entry.rb +9 -9
  129. data/lib/eve_online/esi/models/standing.rb +4 -4
  130. data/lib/eve_online/esi/models/star.rb +9 -9
  131. data/lib/eve_online/esi/models/stargate.rb +7 -7
  132. data/lib/eve_online/esi/models/stargate_destination.rb +3 -3
  133. data/lib/eve_online/esi/models/station.rb +13 -13
  134. data/lib/eve_online/esi/models/system.rb +11 -11
  135. data/lib/eve_online/esi/models/system_jump.rb +3 -3
  136. data/lib/eve_online/esi/models/system_kill.rb +5 -5
  137. data/lib/eve_online/esi/models/type.rb +17 -17
  138. data/lib/eve_online/esi/models/wallet_journal_entry.rb +14 -14
  139. data/lib/eve_online/esi/models/war.rb +69 -0
  140. data/lib/eve_online/esi/server_status.rb +4 -3
  141. data/lib/eve_online/esi/universe_ancestries.rb +4 -3
  142. data/lib/eve_online/esi/universe_asteroid_belt.rb +5 -4
  143. data/lib/eve_online/esi/universe_bloodlines.rb +4 -3
  144. data/lib/eve_online/esi/universe_categories.rb +3 -2
  145. data/lib/eve_online/esi/universe_category.rb +7 -6
  146. data/lib/eve_online/esi/universe_constellation.rb +7 -6
  147. data/lib/eve_online/esi/universe_constellations.rb +3 -2
  148. data/lib/eve_online/esi/universe_factions.rb +4 -3
  149. data/lib/eve_online/esi/universe_graphic.rb +7 -6
  150. data/lib/eve_online/esi/universe_graphics.rb +3 -2
  151. data/lib/eve_online/esi/universe_group.rb +7 -6
  152. data/lib/eve_online/esi/universe_groups.rb +4 -3
  153. data/lib/eve_online/esi/universe_moon.rb +5 -4
  154. data/lib/eve_online/esi/universe_planet.rb +6 -5
  155. data/lib/eve_online/esi/universe_races.rb +4 -3
  156. data/lib/eve_online/esi/universe_region.rb +7 -6
  157. data/lib/eve_online/esi/universe_regions.rb +3 -2
  158. data/lib/eve_online/esi/universe_star.rb +6 -6
  159. data/lib/eve_online/esi/universe_stargate.rb +6 -5
  160. data/lib/eve_online/esi/universe_station.rb +8 -7
  161. data/lib/eve_online/esi/universe_structures.rb +4 -3
  162. data/lib/eve_online/esi/universe_system.rb +8 -7
  163. data/lib/eve_online/esi/universe_system_jumps.rb +3 -2
  164. data/lib/eve_online/esi/universe_system_kills.rb +3 -2
  165. data/lib/eve_online/esi/universe_systems.rb +3 -2
  166. data/lib/eve_online/esi/universe_type.rb +9 -8
  167. data/lib/eve_online/esi/universe_types.rb +4 -3
  168. data/lib/eve_online/esi/war.rb +35 -0
  169. data/lib/eve_online/esi/war_killmails.rb +5 -4
  170. data/lib/eve_online/esi/wars.rb +4 -3
  171. data/lib/eve_online/version.rb +1 -1
  172. metadata +30 -15
  173. data/.rubocop-thread_safety.yml +0 -9
  174. data/.rubocop.yml +0 -14
  175. data/.rubocop_general.yml +0 -102
  176. data/.rubocop_rspec.yml +0 -65
  177. data/.rubocop_todo.yml +0 -0
  178. data/.travis.yml +0 -100
  179. data/gemfiles/activesupport_42.gemfile +0 -7
  180. data/gemfiles/activesupport_50.gemfile +0 -7
  181. data/gemfiles/activesupport_51.gemfile +0 -7
  182. data/gemfiles/activesupport_52.gemfile +0 -7
  183. data/gemfiles/activesupport_60.gemfile +0 -7
  184. data/gemfiles/activesupport_edge.gemfile +0 -7
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CorporationKillmailsRecent < Base
6
- API_PATH = '/v1/corporations/%<corporation_id>s/killmails/recent/'
6
+ API_PATH = "/v1/corporations/%<corporation_id>s/killmails/recent/"
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
- 'esi-killmails.read_corporation_killmails.v1'
29
+ "esi-killmails.read_corporation_killmails.v1"
30
30
  end
31
31
 
32
32
  def roles
33
- ['Director']
33
+ ["Director"]
34
34
  end
35
35
 
36
- def additation_query_params
36
+ def additional_query_params
37
37
  [:page]
38
38
  end
39
39
 
40
40
  def path
41
- format("#{ API_PATH }", corporation_id: corporation_id)
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 CorporationLoyaltyStoreOffers < Base
6
- API_PATH = '/v1/loyalty/stores/%<corporation_id>s/offers/'
6
+ API_PATH = "/v1/loyalty/stores/%<corporation_id>s/offers/"
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; end
27
+ def scope
28
+ end
28
29
 
29
30
  def roles
30
31
  []
31
32
  end
32
33
 
33
34
  def path
34
- format("#{ API_PATH }", corporation_id: corporation_id)
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 CorporationOrders < Base
6
- API_PATH = '/v3/corporations/%<corporation_id>s/orders/'
6
+ API_PATH = "/v3/corporations/%<corporation_id>s/orders/"
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
- 'esi-markets.read_corporation_orders.v1'
29
+ "esi-markets.read_corporation_orders.v1"
30
30
  end
31
31
 
32
32
  def roles
33
- ['Accountant', 'Trader']
33
+ ["Accountant", "Trader"]
34
34
  end
35
35
 
36
- def additation_query_params
36
+ def additional_query_params
37
37
  [:page]
38
38
  end
39
39
 
40
40
  def path
41
- format("#{ API_PATH }", corporation_id: corporation_id)
41
+ format(API_PATH, corporation_id: corporation_id)
42
42
  end
43
43
  end
44
44
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'forwardable'
3
+ require "forwardable"
4
4
 
5
5
  module EveOnline
6
6
  module ESI
7
7
  class DogmaAttribute < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/dogma/attributes/%<attribute_id>s/'
10
+ API_PATH = "/v1/dogma/attributes/%<attribute_id>s/"
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -18,17 +18,18 @@ module EveOnline
18
18
  end
19
19
 
20
20
  def_delegators :model, :as_json, :attribute_id, :default_value,
21
- :description, :display_name, :high_is_good, :icon_id,
22
- :name, :published, :stackable, :unit_id
21
+ :description, :display_name, :high_is_good, :icon_id, :name,
22
+ :published, :stackable, :unit_id
23
23
 
24
24
  def model
25
25
  @model ||= Models::DogmaAttribute.new(response)
26
26
  end
27
27
 
28
- def scope; end
28
+ def scope
29
+ end
29
30
 
30
31
  def path
31
- format("#{ API_PATH }", attribute_id: id)
32
+ format(API_PATH, attribute_id: id)
32
33
  end
33
34
  end
34
35
  end
@@ -3,13 +3,14 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class DogmaAttributes < Base
6
- API_PATH = '/v1/dogma/attributes/'
6
+ API_PATH = "/v1/dogma/attributes/"
7
7
 
8
8
  def attribute_ids
9
9
  response
10
10
  end
11
11
 
12
- def scope; end
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 'forwardable'
3
+ require "forwardable"
4
4
 
5
5
  module EveOnline
6
6
  module ESI
7
7
  class DogmaEffect < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v2/dogma/effects/%<effect_id>s/'
10
+ API_PATH = "/v2/dogma/effects/%<effect_id>s/"
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -18,22 +18,22 @@ module EveOnline
18
18
  end
19
19
 
20
20
  def_delegators :model, :as_json, :description, :disallow_auto_repeat,
21
- :discharge_attribute_id, :display_name,
22
- :duration_attribute_id, :effect_category, :effect_id,
23
- :electronic_chance, :falloff_attribute_id, :icon_id,
24
- :is_assistance, :is_offensive, :is_warp_safe,
25
- :name, :post_expression, :pre_expression, :published,
26
- :range_attribute_id, :range_chance,
27
- :tracking_speed_attribute_id, :modifiers
21
+ :discharge_attribute_id, :display_name, :duration_attribute_id,
22
+ :effect_category, :effect_id, :electronic_chance,
23
+ :falloff_attribute_id, :icon_id, :is_assistance, :is_offensive,
24
+ :is_warp_safe, :name, :post_expression, :pre_expression, :published,
25
+ :range_attribute_id, :range_chance, :tracking_speed_attribute_id,
26
+ :modifiers
28
27
 
29
28
  def model
30
29
  @model ||= Models::DogmaEffect.new(response)
31
30
  end
32
31
 
33
- def scope; end
32
+ def scope
33
+ end
34
34
 
35
35
  def path
36
- format("#{ API_PATH }", effect_id: id)
36
+ format(API_PATH, effect_id: id)
37
37
  end
38
38
  end
39
39
  end
@@ -3,13 +3,14 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class DogmaEffects < Base
6
- API_PATH = '/v1/dogma/effects/'
6
+ API_PATH = "/v1/dogma/effects/"
7
7
 
8
8
  def effect_ids
9
9
  response
10
10
  end
11
11
 
12
- def scope; end
12
+ def scope
13
+ end
13
14
 
14
15
  def path
15
16
  API_PATH
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "forwardable"
4
+
5
+ module EveOnline
6
+ module ESI
7
+ class MarketGroup < Base
8
+ extend Forwardable
9
+
10
+ API_PATH = "/v1/markets/groups/%<market_group_id>s/"
11
+
12
+ attr_reader :id
13
+
14
+ def initialize(options)
15
+ super
16
+
17
+ @id = options.fetch(:id)
18
+ end
19
+
20
+ def_delegators :model, :as_json, :description, :market_group_id, :name,
21
+ :parent_group_id, :type_ids
22
+
23
+ def model
24
+ @model ||= Models::MarketGroup.new(response)
25
+ end
26
+
27
+ def scope
28
+ end
29
+
30
+ def additional_query_params
31
+ [:language]
32
+ end
33
+
34
+ def path
35
+ format(API_PATH, market_group_id: id)
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ class MarketGroups < Base
6
+ API_PATH = "/v1/markets/groups/"
7
+
8
+ def market_group_ids
9
+ response
10
+ end
11
+
12
+ def scope
13
+ end
14
+
15
+ def path
16
+ API_PATH
17
+ end
18
+ end
19
+ end
20
+ end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class MarketHistory < Base
6
- API_PATH = '/v1/markets/%<region_id>s/history/'
6
+ API_PATH = "/v1/markets/%<region_id>s/history/"
7
7
 
8
8
  attr_reader :region_id, :type_id
9
9
 
@@ -25,14 +25,15 @@ module EveOnline
25
25
  end
26
26
  end
27
27
 
28
- def scope; end
28
+ def scope
29
+ end
29
30
 
30
- def additation_query_params
31
+ def additional_query_params
31
32
  [:type_id]
32
33
  end
33
34
 
34
35
  def path
35
- format("#{ API_PATH }", region_id: region_id)
36
+ format(API_PATH, region_id: region_id)
36
37
  end
37
38
  end
38
39
  end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ module Models
6
+ class Aggressor < Base
7
+ def as_json
8
+ {
9
+ alliance_id: alliance_id,
10
+ corporation_id: corporation_id,
11
+ isk_destroyed: isk_destroyed,
12
+ ships_killed: ships_killed,
13
+ }
14
+ end
15
+
16
+ def alliance_id
17
+ options["alliance_id"]
18
+ end
19
+
20
+ def corporation_id
21
+ options["corporation_id"]
22
+ end
23
+
24
+ def isk_destroyed
25
+ options["isk_destroyed"]
26
+ end
27
+
28
+ def ships_killed
29
+ options["ships_killed"]
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -12,38 +12,38 @@ module EveOnline
12
12
  executor_corporation_id: executor_corporation_id,
13
13
  faction_id: faction_id,
14
14
  name: name,
15
- ticker: ticker
15
+ ticker: ticker,
16
16
  }
17
17
  end
18
18
 
19
19
  def creator_corporation_id
20
- options['creator_corporation_id']
20
+ options["creator_corporation_id"]
21
21
  end
22
22
 
23
23
  def creator_id
24
- options['creator_id']
24
+ options["creator_id"]
25
25
  end
26
26
 
27
27
  def date_founded
28
- date_founded = options['date_founded']
28
+ date_founded = options["date_founded"]
29
29
 
30
30
  parse_datetime_with_timezone(date_founded) if date_founded
31
31
  end
32
32
 
33
33
  def executor_corporation_id
34
- options['executor_corporation_id']
34
+ options["executor_corporation_id"]
35
35
  end
36
36
 
37
37
  def faction_id
38
- options['faction_id']
38
+ options["faction_id"]
39
39
  end
40
40
 
41
41
  def name
42
- options['name']
42
+ options["name"]
43
43
  end
44
44
 
45
45
  def ticker
46
- options['ticker']
46
+ options["ticker"]
47
47
  end
48
48
  end
49
49
  end
@@ -7,16 +7,16 @@ module EveOnline
7
7
  def as_json
8
8
  {
9
9
  icon_medium: icon_medium,
10
- icon_small: icon_small
10
+ icon_small: icon_small,
11
11
  }
12
12
  end
13
13
 
14
14
  def icon_medium
15
- options['px128x128']
15
+ options["px128x128"]
16
16
  end
17
17
 
18
18
  def icon_small
19
- options['px64x64']
19
+ options["px64x64"]
20
20
  end
21
21
  end
22
22
  end
@@ -7,16 +7,16 @@ module EveOnline
7
7
  def as_json
8
8
  {
9
9
  alliance_id: alliance_id,
10
- alliance_name: alliance_name
10
+ alliance_name: alliance_name,
11
11
  }
12
12
  end
13
13
 
14
14
  def alliance_id
15
- options['alliance_id']
15
+ options["alliance_id"]
16
16
  end
17
17
 
18
18
  def alliance_name
19
- options['alliance_name']
19
+ options["alliance_name"]
20
20
  end
21
21
  end
22
22
  end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ module Models
6
+ class Allies < Base
7
+ def allies
8
+ output = []
9
+
10
+ return output unless options.is_a?(Array)
11
+
12
+ options.each do |ally|
13
+ output << Ally.new(ally)
14
+ end
15
+
16
+ output
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end