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.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +62 -0
  3. data/.ruby-version +1 -1
  4. data/Appraisals +11 -0
  5. data/CHANGELOG.md +67 -0
  6. data/Gemfile +7 -10
  7. data/Gemfile.lock +77 -68
  8. data/Gemfile.mutant.lock +67 -59
  9. data/README.md +414 -136
  10. data/Rakefile +2 -2
  11. data/eve_online.gemspec +28 -27
  12. data/lib/eve_online.rb +226 -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 +42 -32
  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_calendar.rb +4 -4
  25. data/lib/eve_online/esi/character_calendar_event.rb +4 -5
  26. data/lib/eve_online/esi/character_clones.rb +7 -7
  27. data/lib/eve_online/esi/{character_bookmarks.rb → character_contracts.rb} +9 -9
  28. data/lib/eve_online/esi/character_corporation_history.rb +4 -3
  29. data/lib/eve_online/esi/character_fatigue.rb +5 -5
  30. data/lib/eve_online/esi/character_get_mail.rb +37 -0
  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_mail_labels.rb +40 -0
  37. data/lib/eve_online/esi/character_notifications.rb +3 -3
  38. data/lib/eve_online/esi/character_online.rb +5 -5
  39. data/lib/eve_online/esi/character_orders.rb +3 -3
  40. data/lib/eve_online/esi/character_portrait.rb +5 -4
  41. data/lib/eve_online/esi/character_ship.rb +4 -4
  42. data/lib/eve_online/esi/character_skill_queue.rb +3 -3
  43. data/lib/eve_online/esi/character_skills.rb +6 -6
  44. data/lib/eve_online/esi/character_standings.rb +3 -3
  45. data/lib/eve_online/esi/character_wallet.rb +3 -3
  46. data/lib/eve_online/esi/character_wallet_journal.rb +6 -6
  47. data/lib/eve_online/esi/character_wallet_transactions.rb +41 -0
  48. data/lib/eve_online/esi/corporation.rb +8 -7
  49. data/lib/eve_online/esi/corporation_alliance_history.rb +4 -3
  50. data/lib/eve_online/esi/corporation_assets.rb +5 -5
  51. data/lib/eve_online/esi/corporation_assets_locations.rb +5 -5
  52. data/lib/eve_online/esi/corporation_assets_names.rb +5 -5
  53. data/lib/eve_online/esi/corporation_blueprints.rb +5 -5
  54. data/lib/eve_online/esi/corporation_industry_jobs.rb +5 -5
  55. data/lib/eve_online/esi/corporation_killmails_recent.rb +5 -5
  56. data/lib/eve_online/esi/corporation_loyalty_store_offers.rb +4 -3
  57. data/lib/eve_online/esi/corporation_npc.rb +20 -0
  58. data/lib/eve_online/esi/corporation_orders.rb +5 -5
  59. data/lib/eve_online/esi/dogma_attribute.rb +7 -6
  60. data/lib/eve_online/esi/dogma_attributes.rb +3 -2
  61. data/lib/eve_online/esi/dogma_effect.rb +11 -11
  62. data/lib/eve_online/esi/dogma_effects.rb +3 -2
  63. data/lib/eve_online/esi/killmail.rb +30 -0
  64. data/lib/eve_online/esi/market_group.rb +39 -0
  65. data/lib/eve_online/esi/market_groups.rb +20 -0
  66. data/lib/eve_online/esi/market_history.rb +5 -4
  67. data/lib/eve_online/esi/market_prices.rb +27 -0
  68. data/lib/eve_online/esi/models/aggressor.rb +34 -0
  69. data/lib/eve_online/esi/models/alliance.rb +7 -7
  70. data/lib/eve_online/esi/models/alliance_icon.rb +2 -2
  71. data/lib/eve_online/esi/models/alliance_short.rb +2 -2
  72. data/lib/eve_online/esi/models/allies.rb +21 -0
  73. data/lib/eve_online/esi/models/ally.rb +24 -0
  74. data/lib/eve_online/esi/models/ancestry.rb +6 -6
  75. data/lib/eve_online/esi/models/asset.rb +8 -8
  76. data/lib/eve_online/esi/models/asset_location.rb +2 -2
  77. data/lib/eve_online/esi/models/asset_name.rb +2 -2
  78. data/lib/eve_online/esi/models/asteroid_belt.rb +3 -3
  79. data/lib/eve_online/esi/models/attributes.rb +8 -8
  80. data/lib/eve_online/esi/models/base.rb +2 -2
  81. data/lib/eve_online/esi/models/bloodline.rb +11 -11
  82. data/lib/eve_online/esi/models/blueprint.rb +8 -8
  83. data/lib/eve_online/esi/models/category.rb +4 -4
  84. data/lib/eve_online/esi/models/character.rb +12 -12
  85. data/lib/eve_online/esi/models/character_corporation_history.rb +4 -4
  86. data/lib/eve_online/esi/models/character_industry_job.rb +22 -22
  87. data/lib/eve_online/esi/models/character_location.rb +3 -3
  88. data/lib/eve_online/esi/models/character_order.rb +14 -14
  89. data/lib/eve_online/esi/models/character_portrait.rb +4 -4
  90. data/lib/eve_online/esi/models/character_ship.rb +3 -3
  91. data/lib/eve_online/esi/models/constellation.rb +5 -5
  92. data/lib/eve_online/esi/models/contract.rb +132 -0
  93. data/lib/eve_online/esi/models/coordinates.rb +3 -3
  94. data/lib/eve_online/esi/models/corporation.rb +14 -14
  95. data/lib/eve_online/esi/models/corporation_alliance_history.rb +4 -4
  96. data/lib/eve_online/esi/models/corporation_industry_job.rb +22 -22
  97. data/lib/eve_online/esi/models/corporation_order.rb +15 -15
  98. data/lib/eve_online/esi/models/defender.rb +34 -0
  99. data/lib/eve_online/esi/models/dogma_attribute.rb +10 -10
  100. data/lib/eve_online/esi/models/dogma_attribute_short.rb +2 -2
  101. data/lib/eve_online/esi/models/dogma_attributes.rb +1 -1
  102. data/lib/eve_online/esi/models/dogma_effect.rb +21 -21
  103. data/lib/eve_online/esi/models/dogma_effect_modifier.rb +6 -6
  104. data/lib/eve_online/esi/models/dogma_effect_modifiers.rb +1 -1
  105. data/lib/eve_online/esi/models/dogma_effect_short.rb +2 -2
  106. data/lib/eve_online/esi/models/dogma_effects.rb +1 -1
  107. data/lib/eve_online/esi/models/event.rb +5 -5
  108. data/lib/eve_online/esi/models/event_details.rb +10 -10
  109. data/lib/eve_online/esi/models/faction.rb +10 -10
  110. data/lib/eve_online/esi/models/fatigue.rb +3 -3
  111. data/lib/eve_online/esi/models/graphic.rb +8 -8
  112. data/lib/eve_online/esi/models/group.rb +5 -5
  113. data/lib/eve_online/esi/models/home_location.rb +2 -2
  114. data/lib/eve_online/esi/models/jump_clone.rb +5 -5
  115. data/lib/eve_online/esi/models/killmail.rb +47 -0
  116. data/lib/eve_online/esi/models/killmail_short.rb +2 -2
  117. data/lib/eve_online/esi/models/loyalty_point.rb +2 -2
  118. data/lib/eve_online/esi/models/loyalty_store_offer.rb +9 -8
  119. data/lib/eve_online/esi/models/mail.rb +49 -0
  120. data/lib/eve_online/esi/models/mail_label.rb +34 -0
  121. data/lib/eve_online/esi/models/mail_recipient.rb +24 -0
  122. data/lib/eve_online/esi/models/mail_recipients.rb +21 -0
  123. data/lib/eve_online/esi/models/market_group.rb +38 -0
  124. data/lib/eve_online/esi/models/market_history.rb +6 -6
  125. data/lib/eve_online/esi/models/market_price.rb +29 -0
  126. data/lib/eve_online/esi/models/moon.rb +4 -4
  127. data/lib/eve_online/esi/models/notification.rb +7 -7
  128. data/lib/eve_online/esi/models/offer_required_item.rb +24 -0
  129. data/lib/eve_online/esi/models/offer_required_items.rb +21 -0
  130. data/lib/eve_online/esi/models/online.rb +4 -4
  131. data/lib/eve_online/esi/models/planet.rb +5 -5
  132. data/lib/eve_online/esi/models/planet_short.rb +3 -3
  133. data/lib/eve_online/esi/models/position.rb +3 -3
  134. data/lib/eve_online/esi/models/race.rb +6 -6
  135. data/lib/eve_online/esi/models/region.rb +7 -8
  136. data/lib/eve_online/esi/models/server_status.rb +4 -4
  137. data/lib/eve_online/esi/models/skill.rb +4 -4
  138. data/lib/eve_online/esi/models/skill_queue_entry.rb +8 -8
  139. data/lib/eve_online/esi/models/standing.rb +3 -3
  140. data/lib/eve_online/esi/models/star.rb +8 -8
  141. data/lib/eve_online/esi/models/stargate.rb +14 -8
  142. data/lib/eve_online/esi/models/station.rb +12 -12
  143. data/lib/eve_online/esi/models/system.rb +10 -10
  144. data/lib/eve_online/esi/models/system_jump.rb +2 -2
  145. data/lib/eve_online/esi/models/system_kill.rb +4 -4
  146. data/lib/eve_online/esi/models/type.rb +16 -16
  147. data/lib/eve_online/esi/models/{wallet_journal_entry.rb → wallet_journal.rb} +16 -16
  148. data/lib/eve_online/esi/models/wallet_transaction.rb +66 -0
  149. data/lib/eve_online/esi/models/war.rb +69 -0
  150. data/lib/eve_online/esi/server_status.rb +4 -3
  151. data/lib/eve_online/esi/universe_ancestries.rb +4 -3
  152. data/lib/eve_online/esi/universe_asteroid_belt.rb +5 -4
  153. data/lib/eve_online/esi/universe_bloodlines.rb +4 -3
  154. data/lib/eve_online/esi/universe_categories.rb +3 -2
  155. data/lib/eve_online/esi/universe_category.rb +7 -6
  156. data/lib/eve_online/esi/universe_constellation.rb +7 -6
  157. data/lib/eve_online/esi/universe_constellations.rb +3 -2
  158. data/lib/eve_online/esi/universe_factions.rb +4 -3
  159. data/lib/eve_online/esi/universe_graphic.rb +7 -6
  160. data/lib/eve_online/esi/universe_graphics.rb +3 -2
  161. data/lib/eve_online/esi/universe_group.rb +7 -6
  162. data/lib/eve_online/esi/universe_groups.rb +4 -3
  163. data/lib/eve_online/esi/universe_moon.rb +5 -4
  164. data/lib/eve_online/esi/universe_planet.rb +6 -5
  165. data/lib/eve_online/esi/universe_races.rb +4 -3
  166. data/lib/eve_online/esi/universe_region.rb +8 -7
  167. data/lib/eve_online/esi/universe_regions.rb +3 -2
  168. data/lib/eve_online/esi/universe_star.rb +6 -6
  169. data/lib/eve_online/esi/universe_stargate.rb +6 -5
  170. data/lib/eve_online/esi/universe_station.rb +8 -7
  171. data/lib/eve_online/esi/universe_structures.rb +4 -3
  172. data/lib/eve_online/esi/universe_system.rb +8 -7
  173. data/lib/eve_online/esi/universe_system_jumps.rb +3 -2
  174. data/lib/eve_online/esi/universe_system_kills.rb +3 -2
  175. data/lib/eve_online/esi/universe_systems.rb +3 -2
  176. data/lib/eve_online/esi/universe_type.rb +9 -8
  177. data/lib/eve_online/esi/universe_types.rb +4 -3
  178. data/lib/eve_online/esi/war.rb +35 -0
  179. data/lib/eve_online/esi/war_killmails.rb +5 -4
  180. data/lib/eve_online/esi/wars.rb +4 -3
  181. data/lib/eve_online/exceptions/error_limited.rb +8 -0
  182. data/lib/eve_online/formulas/blueprint_copy_time.rb +47 -0
  183. data/lib/eve_online/version.rb +1 -1
  184. metadata +54 -27
  185. data/.rubocop-thread_safety.yml +0 -9
  186. data/.rubocop.yml +0 -14
  187. data/.rubocop_general.yml +0 -102
  188. data/.rubocop_rspec.yml +0 -65
  189. data/.rubocop_todo.yml +0 -0
  190. data/.travis.yml +0 -100
  191. data/gemfiles/activesupport_42.gemfile +0 -7
  192. data/gemfiles/activesupport_50.gemfile +0 -7
  193. data/gemfiles/activesupport_51.gemfile +0 -7
  194. data/gemfiles/activesupport_52.gemfile +0 -7
  195. data/gemfiles/activesupport_60.gemfile +0 -7
  196. data/gemfiles/activesupport_edge.gemfile +0 -7
  197. data/lib/eve_online/esi/character_bookmark_folders.rb +0 -41
  198. data/lib/eve_online/esi/models/bookmark.rb +0 -71
  199. data/lib/eve_online/esi/models/bookmark_folder.rb +0 -24
  200. 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
  module Models
6
- class WalletJournalEntry < Base
6
+ class WalletJournal < Base
7
7
  def as_json
8
8
  {
9
9
  amount: amount,
@@ -13,7 +13,7 @@ module EveOnline
13
13
  date: date,
14
14
  description: description,
15
15
  first_party_id: first_party_id,
16
- id: id,
16
+ wallet_journal_id: wallet_journal_id,
17
17
  reason: reason,
18
18
  ref_type: ref_type,
19
19
  second_party_id: second_party_id,
@@ -23,57 +23,57 @@ module EveOnline
23
23
  end
24
24
 
25
25
  def amount
26
- options['amount']
26
+ options["amount"]
27
27
  end
28
28
 
29
29
  def balance
30
- options['balance']
30
+ options["balance"]
31
31
  end
32
32
 
33
33
  def context_id
34
- options['context_id']
34
+ options["context_id"]
35
35
  end
36
36
 
37
37
  def context_id_type
38
- options['context_id_type']
38
+ options["context_id_type"]
39
39
  end
40
40
 
41
41
  def date
42
- date = options['date']
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['description']
48
+ options["description"]
49
49
  end
50
50
 
51
51
  def first_party_id
52
- options['first_party_id']
52
+ options["first_party_id"]
53
53
  end
54
54
 
55
- def id
56
- options['id']
55
+ def wallet_journal_id
56
+ options["id"]
57
57
  end
58
58
 
59
59
  def reason
60
- options['reason']
60
+ options["reason"]
61
61
  end
62
62
 
63
63
  def ref_type
64
- options['ref_type']
64
+ options["ref_type"]
65
65
  end
66
66
 
67
67
  def second_party_id
68
- options['second_party_id']
68
+ options["second_party_id"]
69
69
  end
70
70
 
71
71
  def tax
72
- options['tax']
72
+ options["tax"]
73
73
  end
74
74
 
75
75
  def tax_receiver_id
76
- options['tax_receiver_id']
76
+ options["tax_receiver_id"]
77
77
  end
78
78
  end
79
79
  end
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ module Models
6
+ class WalletTransaction < Base
7
+ def as_json
8
+ {
9
+ client_id: client_id,
10
+ date: date,
11
+ is_buy: is_buy,
12
+ is_personal: is_personal,
13
+ journal_ref_id: journal_ref_id,
14
+ location_id: location_id,
15
+ quantity: quantity,
16
+ transaction_id: transaction_id,
17
+ type_id: type_id,
18
+ unit_price: unit_price
19
+ }
20
+ end
21
+
22
+ def client_id
23
+ options["client_id"]
24
+ end
25
+
26
+ def date
27
+ date = options["date"]
28
+
29
+ parse_datetime_with_timezone(date) if date
30
+ end
31
+
32
+ def is_buy
33
+ options["is_buy"]
34
+ end
35
+
36
+ def is_personal
37
+ options["is_personal"]
38
+ end
39
+
40
+ def journal_ref_id
41
+ options["journal_ref_id"]
42
+ end
43
+
44
+ def location_id
45
+ options["location_id"]
46
+ end
47
+
48
+ def quantity
49
+ options["quantity"]
50
+ end
51
+
52
+ def transaction_id
53
+ options["transaction_id"]
54
+ end
55
+
56
+ def type_id
57
+ options["type_id"]
58
+ end
59
+
60
+ def unit_price
61
+ options["unit_price"]
62
+ end
63
+ end
64
+ end
65
+ end
66
+ 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 'forwardable'
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 = '/v1/status/'
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; end
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 = '/v1/universe/ancestries/'
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; end
19
+ def scope
20
+ end
20
21
 
21
- def additation_query_params
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 'forwardable'
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 = '/v1/universe/asteroid_belts/%<asteroid_belt_id>s/'
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; end
26
+ def scope
27
+ end
27
28
 
28
29
  def path
29
- format("#{ API_PATH }", asteroid_belt_id: id)
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 = '/v1/universe/bloodlines/'
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; end
19
+ def scope
20
+ end
20
21
 
21
- def additation_query_params
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 = '/v1/universe/categories/'
6
+ API_PATH = "/v1/universe/categories/"
7
7
 
8
8
  def category_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 UniverseCategory < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/categories/%<category_id>s/'
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
- :group_ids
21
+ :group_ids
22
22
 
23
23
  def model
24
24
  @model ||= Models::Category.new(response)
25
25
  end
26
26
 
27
- def scope; end
27
+ def scope
28
+ end
28
29
 
29
- def additation_query_params
30
+ def additional_query_params
30
31
  [:language]
31
32
  end
32
33
 
33
34
  def path
34
- format("#{ API_PATH }", category_id: id)
35
+ format(API_PATH, category_id: id)
35
36
  end
36
37
  end
37
38
  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 UniverseConstellation < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/constellations/%<constellation_id>s/'
10
+ API_PATH = "/v1/universe/constellations/%<constellation_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, :constellation_id, :name, :region_id,
21
- :system_ids, :position
21
+ :system_ids, :position
22
22
 
23
23
  def model
24
24
  @model ||= Models::Constellation.new(response)
25
25
  end
26
26
 
27
- def scope; end
27
+ def scope
28
+ end
28
29
 
29
- def additation_query_params
30
+ def additional_query_params
30
31
  [:language]
31
32
  end
32
33
 
33
34
  def path
34
- format("#{ API_PATH }", constellation_id: id)
35
+ format(API_PATH, constellation_id: id)
35
36
  end
36
37
  end
37
38
  end
@@ -3,13 +3,14 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseConstellations < Base
6
- API_PATH = '/v1/universe/constellations/'
6
+ API_PATH = "/v1/universe/constellations/"
7
7
 
8
8
  def constellation_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
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseFactions < Base
6
- API_PATH = '/v2/universe/factions/'
6
+ API_PATH = "/v2/universe/factions/"
7
7
 
8
8
  def factions
9
9
  @factions ||=
@@ -16,9 +16,10 @@ module EveOnline
16
16
  end
17
17
  end
18
18
 
19
- def scope; end
19
+ def scope
20
+ end
20
21
 
21
- def additation_query_params
22
+ def additional_query_params
22
23
  [:language]
23
24
  end
24
25