eve_online 0.27.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/Gemfile.lock +3 -3
  4. data/Gemfile.mutant.lock +2 -2
  5. data/README.md +54 -6
  6. data/lib/eve_online.rb +2 -0
  7. data/lib/eve_online/esi/alliance.rb +3 -3
  8. data/lib/eve_online/esi/alliance_corporations.rb +3 -3
  9. data/lib/eve_online/esi/alliance_icon.rb +3 -3
  10. data/lib/eve_online/esi/alliances.rb +3 -3
  11. data/lib/eve_online/esi/base.rb +27 -4
  12. data/lib/eve_online/esi/character.rb +3 -3
  13. data/lib/eve_online/esi/character_assets.rb +7 -3
  14. data/lib/eve_online/esi/character_assets_locations.rb +3 -3
  15. data/lib/eve_online/esi/character_assets_names.rb +3 -3
  16. data/lib/eve_online/esi/character_attributes.rb +3 -3
  17. data/lib/eve_online/esi/character_blueprints.rb +7 -3
  18. data/lib/eve_online/esi/character_bookmark_folders.rb +7 -3
  19. data/lib/eve_online/esi/character_bookmarks.rb +7 -3
  20. data/lib/eve_online/esi/character_calendar.rb +9 -6
  21. data/lib/eve_online/esi/character_calendar_event.rb +3 -3
  22. data/lib/eve_online/esi/character_clones.rb +3 -3
  23. data/lib/eve_online/esi/character_corporation_history.rb +3 -3
  24. data/lib/eve_online/esi/character_fatigue.rb +3 -3
  25. data/lib/eve_online/esi/character_implants.rb +3 -3
  26. data/lib/eve_online/esi/character_industry_jobs.rb +8 -4
  27. data/lib/eve_online/esi/character_killmails_recent.rb +7 -3
  28. data/lib/eve_online/esi/character_location.rb +3 -3
  29. data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
  30. data/lib/eve_online/esi/character_notifications.rb +3 -3
  31. data/lib/eve_online/esi/character_online.rb +3 -3
  32. data/lib/eve_online/esi/character_orders.rb +3 -3
  33. data/lib/eve_online/esi/character_portrait.rb +3 -3
  34. data/lib/eve_online/esi/character_ship.rb +3 -3
  35. data/lib/eve_online/esi/character_skill_queue.rb +3 -3
  36. data/lib/eve_online/esi/character_skills.rb +3 -3
  37. data/lib/eve_online/esi/character_standings.rb +3 -3
  38. data/lib/eve_online/esi/character_wallet.rb +3 -3
  39. data/lib/eve_online/esi/character_wallet_journal.rb +7 -3
  40. data/lib/eve_online/esi/corporation.rb +3 -3
  41. data/lib/eve_online/esi/corporation_alliance_history.rb +38 -0
  42. data/lib/eve_online/esi/corporation_assets.rb +7 -3
  43. data/lib/eve_online/esi/corporation_assets_locations.rb +3 -3
  44. data/lib/eve_online/esi/corporation_assets_names.rb +3 -3
  45. data/lib/eve_online/esi/corporation_blueprints.rb +7 -3
  46. data/lib/eve_online/esi/corporation_industry_jobs.rb +8 -4
  47. data/lib/eve_online/esi/corporation_killmails_recent.rb +7 -3
  48. data/lib/eve_online/esi/corporation_loyalty_store_offers.rb +3 -3
  49. data/lib/eve_online/esi/corporation_orders.rb +7 -3
  50. data/lib/eve_online/esi/dogma_attribute.rb +3 -3
  51. data/lib/eve_online/esi/dogma_attributes.rb +3 -3
  52. data/lib/eve_online/esi/dogma_effect.rb +3 -3
  53. data/lib/eve_online/esi/dogma_effects.rb +3 -3
  54. data/lib/eve_online/esi/market_history.rb +7 -3
  55. data/lib/eve_online/esi/models/corporation_alliance_history.rb +36 -0
  56. data/lib/eve_online/esi/server_status.rb +3 -3
  57. data/lib/eve_online/esi/universe_ancestries.rb +7 -3
  58. data/lib/eve_online/esi/universe_asteroid_belt.rb +3 -3
  59. data/lib/eve_online/esi/universe_bloodlines.rb +7 -3
  60. data/lib/eve_online/esi/universe_categories.rb +3 -3
  61. data/lib/eve_online/esi/universe_category.rb +7 -3
  62. data/lib/eve_online/esi/universe_constellation.rb +7 -3
  63. data/lib/eve_online/esi/universe_constellations.rb +3 -3
  64. data/lib/eve_online/esi/universe_factions.rb +7 -3
  65. data/lib/eve_online/esi/universe_graphic.rb +3 -3
  66. data/lib/eve_online/esi/universe_graphics.rb +3 -3
  67. data/lib/eve_online/esi/universe_group.rb +7 -3
  68. data/lib/eve_online/esi/universe_groups.rb +7 -3
  69. data/lib/eve_online/esi/universe_moon.rb +3 -3
  70. data/lib/eve_online/esi/universe_planet.rb +3 -3
  71. data/lib/eve_online/esi/universe_races.rb +7 -3
  72. data/lib/eve_online/esi/universe_region.rb +7 -3
  73. data/lib/eve_online/esi/universe_regions.rb +3 -3
  74. data/lib/eve_online/esi/universe_star.rb +3 -3
  75. data/lib/eve_online/esi/universe_stargate.rb +3 -3
  76. data/lib/eve_online/esi/universe_station.rb +3 -3
  77. data/lib/eve_online/esi/universe_structures.rb +15 -3
  78. data/lib/eve_online/esi/universe_system.rb +7 -3
  79. data/lib/eve_online/esi/universe_system_jumps.rb +3 -3
  80. data/lib/eve_online/esi/universe_system_kills.rb +3 -3
  81. data/lib/eve_online/esi/universe_systems.rb +3 -3
  82. data/lib/eve_online/esi/universe_type.rb +7 -3
  83. data/lib/eve_online/esi/universe_types.rb +7 -3
  84. data/lib/eve_online/esi/war_killmails.rb +7 -3
  85. data/lib/eve_online/esi/wars.rb +14 -7
  86. data/lib/eve_online/version.rb +1 -1
  87. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a17eb0d2aec3139c872785d811bdb2314c56b1b9c64b8a96dc91cf500944777b
4
- data.tar.gz: 9d9c93b5cc0238575e56d14e3f772ce9bb4699836a08b93a9e41e109abfee3a8
3
+ metadata.gz: 943b658df93d204304c616a28be93c440fc185a794ecd97533a42ef0b9573eda
4
+ data.tar.gz: d12f89ba9d4960d4343d0f7f590121fc56ce011a98ec8c17ec177e192bb9a9a3
5
5
  SHA512:
6
- metadata.gz: 8d3ea3e4d977d2d3bfd8dd730977b1c023125bc51978a9aceaa2af1c060e7813ce23bc6436727da210be2c37590bee107406fd2b890af4973b05e0139c398186
7
- data.tar.gz: 8e13af4b0fd4abb10bafb1552ad98afd756b1ca091cb824a219771b8ed101f9a3e81154cbb9ea2f570ec6dc5a428248d770a53d1b9a6856907084e2b0a0167b5
6
+ metadata.gz: 3e4a436efa3bda306f56069d2840721e6579df0d03edd7e2a8ce150a50c6e7706da647083c32429c5c1ef5126f40ef621d20d756b2e521684caa108646400d47
7
+ data.tar.gz: cd7a036faac7af20fef0399877687085d759ad55b221379001249d7026c150c28ae0679df4e304e5b4ae2428039acaf96e25d9370a61e7146cf6ffaa554df076
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.28.0
4
+
5
+ * Refactor url generator
6
+ * Move language from header to query params. So, you can cache requests by url.
7
+ * Remove `page` from `EveOnline::ESI::UniverseStructures`
8
+ * Add support `filter` in `EveOnline::ESI::UniverseStructures`
9
+ * Add support `max_war_id` in `EveOnline::ESI::Wars`
10
+ * Add support `from_event` in `EveOnline::ESI::CharacterCalendar`
11
+ * Add `EveOnline::ESI::CorporationAllianceHistory`
12
+ * Add `EveOnline::ESI::Models::CorporationAllianceHistory`
13
+
3
14
  ## v0.27.0
4
15
 
5
16
  * Rails 6.0.0.rc1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eve_online (0.27.0)
4
+ eve_online (0.28.0)
5
5
  activesupport (>= 4.2.0)
6
6
 
7
7
  GEM
@@ -23,7 +23,7 @@ GEM
23
23
  safe_yaml (~> 1.0.0)
24
24
  diff-lcs (1.3)
25
25
  docile (1.3.2)
26
- fasterer (0.5.1)
26
+ fasterer (0.6.0)
27
27
  colorize (~> 0.7)
28
28
  ruby_parser (>= 3.13.0)
29
29
  hashdiff (0.4.0)
@@ -87,7 +87,7 @@ GEM
87
87
  sexp_processor (~> 4.9)
88
88
  safe_yaml (1.0.5)
89
89
  sexp_processor (4.12.1)
90
- simplecov (0.16.1)
90
+ simplecov (0.17.0)
91
91
  docile (~> 1.1)
92
92
  json (>= 1.8, < 3)
93
93
  simplecov-html (~> 0.10.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eve_online (0.27.0)
4
+ eve_online (0.28.0)
5
5
  activesupport (>= 4.2.0)
6
6
 
7
7
  GEM
@@ -101,7 +101,7 @@ GEM
101
101
  rspec-support (~> 3.8.0)
102
102
  rspec-support (3.8.2)
103
103
  safe_yaml (1.0.5)
104
- simplecov (0.16.1)
104
+ simplecov (0.17.0)
105
105
  docile (~> 1.1)
106
106
  json (>= 1.8, < 3)
107
107
  simplecov-html (~> 0.10.0)
data/README.md CHANGED
@@ -407,6 +407,7 @@ bookmark_folder.name # => "Icecream"
407
407
  #### List calendar event summaries
408
408
 
409
409
  ```ruby
410
+ # Add `from_event` if you want skip records
410
411
  options = { token: 'token123', character_id: 90_729_314 }
411
412
 
412
413
  character_calendar = EveOnline::ESI::CharacterCalendar.new(options)
@@ -429,7 +430,6 @@ event.event_response # => "not_responded"
429
430
  event.importance # => 0
430
431
  event.title # => "Moon extraction for 66-PMM - GoldMine-5-"
431
432
 
432
- # TODO: add from_event support
433
433
  # TODO: character_calendar.etag
434
434
  ```
435
435
 
@@ -828,6 +828,32 @@ corporation.etag # => "046430260be73e5d7ad3a9251954310bd547498eeb38f99e8d305796"
828
828
 
829
829
  #### Get alliance history
830
830
 
831
+ ```ruby
832
+ options = { corporation_id: 98_134_807 }
833
+
834
+ corporation_alliance_history = EveOnline::ESI::CorporationAllianceHistory.new(options)
835
+
836
+ corporation_alliance_history.scope # => nil
837
+
838
+ corporation_alliance_history.roles # => []
839
+
840
+ corporation_alliance_history.entries.size # => 12
841
+
842
+ entry = corporation_alliance_history.entries.first
843
+
844
+ entry.as_json # => {:alliance_id=>99005874,
845
+ # :is_deleted=>nil,
846
+ # :record_id=>1254640,
847
+ # :start_date=>Mon, 03 Jun 2019 00:17:00 UTC +00:00}
848
+
849
+ entry.alliance_id # => 99005874
850
+ entry.is_deleted # => nil
851
+ entry.record_id # => 1254640
852
+ entry.start_date # => Mon, 03 Jun 2019 00:17:00 UTC +00:00
853
+
854
+ corporation_alliance_history.etag # => "9a949294cfa5fcef345ea8d89a574defa09be39845b9b97f1fdddd41"
855
+ ```
856
+
831
857
  #### Get corporation blueprints
832
858
 
833
859
  ```ruby
@@ -2315,11 +2341,23 @@ structures = EveOnline::ESI::UniverseStructures.new
2315
2341
 
2316
2342
  structures.scope # => nil
2317
2343
 
2318
- structures.structure_ids.size # => 4004
2344
+ structures.structure_ids.size # => 3654
2319
2345
 
2320
2346
  structures.structure_ids.first # => 1027528548355
2321
2347
 
2322
- structures.etag # => "6edc271fcf967ee50bec6935856501b233e58790fad237b097946a4c"
2348
+ structures.etag # => "1b64f9a8268bb3ba350acc7d7116bfd75dd9f88defb1bbc61771aec7"
2349
+
2350
+ # with filter (`filter` is enum with values: nil, `market` and `manufacturing_basic`)
2351
+
2352
+ options = { filter: 'market' }
2353
+
2354
+ structures = EveOnline::ESI::UniverseStructures.new(options)
2355
+
2356
+ structures.structure_ids.size # => 108
2357
+
2358
+ structures.structure_ids.first # => 1030490622468
2359
+
2360
+ structures.etag # => "2a825ab50413f1efe5f558b8d093e1299389b2f2ce3fa191907f7209"
2323
2361
  ```
2324
2362
 
2325
2363
  #### Get structure information
@@ -2602,9 +2640,19 @@ wars.war_ids.size # => 2000
2602
2640
 
2603
2641
  wars.war_ids.first # => 629019
2604
2642
 
2605
- # TODO: max_war_id
2606
-
2607
2643
  wars.etag # => "1e90be747fd163e5d74ab7a949bf8ad3f1d6ecd365cac31c534ab046"
2644
+
2645
+ # with max_war_id
2646
+
2647
+ options = { max_war_id: 10 }
2648
+
2649
+ wars = EveOnline::ESI::Wars.new(options)
2650
+
2651
+ wars.war_ids.size # => 9
2652
+
2653
+ wars.war_ids.first # => 9
2654
+
2655
+ wars.etag # => "f1c28227847464613c1cb82dfc8a8c859b7b6857fad2c2a54c562812"
2608
2656
  ```
2609
2657
 
2610
2658
  #### Get war information
@@ -2612,7 +2660,7 @@ wars.etag # => "1e90be747fd163e5d74ab7a949bf8ad3f1d6ecd365cac31c534ab046"
2612
2660
  #### List kills for a war
2613
2661
 
2614
2662
  ```ruby
2615
- options = { war_id: 615578 }
2663
+ options = { war_id: 615578, page: 1 }
2616
2664
 
2617
2665
  war_killmails = EveOnline::ESI::WarKillmails.new(options)
2618
2666
 
@@ -48,6 +48,7 @@ require 'eve_online/esi/character_clones'
48
48
  require 'eve_online/esi/character_implants'
49
49
 
50
50
  require 'eve_online/esi/corporation'
51
+ require 'eve_online/esi/corporation_alliance_history'
51
52
  require 'eve_online/esi/corporation_blueprints'
52
53
 
53
54
  require 'eve_online/esi/dogma_attributes'
@@ -152,6 +153,7 @@ require 'eve_online/esi/models/server_status'
152
153
  require 'eve_online/esi/models/market_history'
153
154
 
154
155
  require 'eve_online/esi/models/corporation'
156
+ require 'eve_online/esi/models/corporation_alliance_history'
155
157
 
156
158
  require 'eve_online/esi/models/alliance'
157
159
  require 'eve_online/esi/models/alliance_short'
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class Alliance < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v3/alliances/%<alliance_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v3/alliances/%<alliance_id>s/'
11
11
 
12
12
  attr_reader :alliance_id
13
13
 
@@ -27,8 +27,8 @@ module EveOnline
27
27
 
28
28
  def scope; end
29
29
 
30
- def url
31
- format("#{ API_HOST }#{ API_PATH }", alliance_id: alliance_id, datasource: datasource)
30
+ def path
31
+ format("#{ API_PATH }", alliance_id: alliance_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 AllianceCorporations < Base
6
- API_PATH = '/v1/alliances/%<alliance_id>s/corporations/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/alliances/%<alliance_id>s/corporations/'
7
7
 
8
8
  attr_reader :alliance_id
9
9
 
@@ -19,8 +19,8 @@ module EveOnline
19
19
 
20
20
  def scope; end
21
21
 
22
- def url
23
- format("#{ API_HOST }#{ API_PATH }", alliance_id: alliance_id, datasource: datasource)
22
+ def path
23
+ format("#{ API_PATH }", alliance_id: alliance_id)
24
24
  end
25
25
  end
26
26
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class AllianceIcon < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/alliances/%<alliance_id>s/icons/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/alliances/%<alliance_id>s/icons/'
11
11
 
12
12
  attr_reader :alliance_id
13
13
 
@@ -25,8 +25,8 @@ module EveOnline
25
25
 
26
26
  def scope; end
27
27
 
28
- def url
29
- format("#{ API_HOST }#{ API_PATH }", alliance_id: alliance_id, datasource: datasource)
28
+ def path
29
+ format("#{ API_PATH }", alliance_id: alliance_id)
30
30
  end
31
31
  end
32
32
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class Alliances < Base
6
- API_PATH = '/v1/alliances/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/alliances/'
7
7
 
8
8
  def alliance_ids
9
9
  response
@@ -11,8 +11,8 @@ module EveOnline
11
11
 
12
12
  def scope; end
13
13
 
14
- def url
15
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
14
+ def path
15
+ API_PATH
16
16
  end
17
17
  end
18
18
  end
@@ -8,7 +8,7 @@ require 'active_support/time'
8
8
  module EveOnline
9
9
  module ESI
10
10
  class Base
11
- API_HOST = 'https://esi.evetech.net'
11
+ API_HOST = 'esi.evetech.net'
12
12
 
13
13
  attr_reader :token, :parser, :_read_timeout, :_open_timeout, :_etag,
14
14
  :datasource, :language
@@ -31,7 +31,7 @@ module EveOnline
31
31
  end
32
32
 
33
33
  def url
34
- raise NotImplementedError
34
+ uri.to_s
35
35
  end
36
36
 
37
37
  def scope
@@ -107,7 +107,6 @@ module EveOnline
107
107
 
108
108
  request['User-Agent'] = user_agent
109
109
  request['Accept'] = 'application/json'
110
- request['Accept-Language'] = language
111
110
  request['Authorization'] = "Bearer #{ token }" if token
112
111
  request['If-None-Match'] = _etag if _etag
113
112
  request['Content-Type'] = 'application/json' if http_method == 'Post'
@@ -122,7 +121,31 @@ module EveOnline
122
121
  end
123
122
 
124
123
  def uri
125
- @uri ||= URI.parse(url)
124
+ @uri ||= URI::HTTPS.build(host: API_HOST,
125
+ path: path,
126
+ query: query.to_query)
127
+ end
128
+
129
+ def additation_query_params
130
+ []
131
+ end
132
+
133
+ def base_query_params
134
+ [:datasource]
135
+ end
136
+
137
+ def path
138
+ raise NotImplementedError
139
+ end
140
+
141
+ def query
142
+ hash = {}
143
+
144
+ (base_query_params + additation_query_params).each do |param|
145
+ hash[param] = public_send(param)
146
+ end
147
+
148
+ hash.reject { |_, v| v.blank? }
126
149
  end
127
150
 
128
151
  def resource
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class Character < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v4/characters/%<character_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v4/characters/%<character_id>s/'
11
11
 
12
12
  attr_reader :character_id
13
13
 
@@ -27,8 +27,8 @@ module EveOnline
27
27
 
28
28
  def scope; end
29
29
 
30
- def url
31
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
30
+ def path
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 CharacterAssets < Base
6
- API_PATH = '/v3/characters/%<character_id>s/assets/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v3/characters/%<character_id>s/assets/'
7
7
 
8
8
  attr_reader :character_id, :page
9
9
 
@@ -29,8 +29,12 @@ module EveOnline
29
29
  'esi-assets.read_assets.v1'
30
30
  end
31
31
 
32
- def url
33
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
32
+ def additation_query_params
33
+ [:page]
34
+ end
35
+
36
+ def path
37
+ format("#{ API_PATH }", character_id: character_id)
34
38
  end
35
39
  end
36
40
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterAssetsLocations < Base
6
- API_PATH = '/v2/characters/%<character_id>s/assets/locations/?datasource=%<datasource>s'
6
+ API_PATH = '/v2/characters/%<character_id>s/assets/locations/'
7
7
 
8
8
  attr_reader :character_id, :item_ids
9
9
 
@@ -41,8 +41,8 @@ module EveOnline
41
41
  raise NotImplementedError
42
42
  end
43
43
 
44
- def url
45
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
44
+ def path
45
+ format("#{ API_PATH }", character_id: character_id)
46
46
  end
47
47
  end
48
48
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterAssetsNames < Base
6
- API_PATH = '/v1/characters/%<character_id>s/assets/names/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/characters/%<character_id>s/assets/names/'
7
7
 
8
8
  attr_reader :character_id, :item_ids
9
9
 
@@ -41,8 +41,8 @@ module EveOnline
41
41
  raise NotImplementedError
42
42
  end
43
43
 
44
- def url
45
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
44
+ def path
45
+ format("#{ API_PATH }", character_id: character_id)
46
46
  end
47
47
  end
48
48
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class CharacterAttributes < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/characters/%<character_id>s/attributes/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/characters/%<character_id>s/attributes/'
11
11
 
12
12
  attr_reader :character_id
13
13
 
@@ -29,8 +29,8 @@ module EveOnline
29
29
  'esi-skills.read_skills.v1'
30
30
  end
31
31
 
32
- def url
33
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
32
+ def path
33
+ format("#{ API_PATH }", character_id: character_id)
34
34
  end
35
35
  end
36
36
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterBlueprints < Base
6
- API_PATH = '/v2/characters/%<character_id>s/blueprints/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v2/characters/%<character_id>s/blueprints/'
7
7
 
8
8
  attr_reader :character_id, :page
9
9
 
@@ -29,8 +29,12 @@ module EveOnline
29
29
  'esi-characters.read_blueprints.v1'
30
30
  end
31
31
 
32
- def url
33
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
32
+ def additation_query_params
33
+ [:page]
34
+ end
35
+
36
+ def path
37
+ format("#{ API_PATH }", character_id: character_id)
34
38
  end
35
39
  end
36
40
  end