eve_online 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.mdlrc +1 -0
  3. data/.travis.yml +11 -2
  4. data/CHANGELOG.md +43 -17
  5. data/Gemfile.lock +37 -28
  6. data/Gemfile.mutant +0 -4
  7. data/Gemfile.mutant.lock +154 -0
  8. data/README.md +334 -302
  9. data/TODO.md +4 -0
  10. data/eve_online.gemspec +1 -1
  11. data/lib/eve_online.rb +2 -2
  12. data/lib/eve_online/esi/alliance.rb +6 -6
  13. data/lib/eve_online/esi/alliance_corporations.rb +3 -3
  14. data/lib/eve_online/esi/alliance_icon.rb +3 -3
  15. data/lib/eve_online/esi/alliances.rb +2 -2
  16. data/lib/eve_online/esi/ancestries.rb +2 -2
  17. data/lib/eve_online/esi/base.rb +3 -2
  18. data/lib/eve_online/esi/bloodlines.rb +2 -2
  19. data/lib/eve_online/esi/character.rb +6 -6
  20. data/lib/eve_online/esi/character_assets.rb +3 -3
  21. data/lib/eve_online/esi/character_attributes.rb +6 -6
  22. data/lib/eve_online/esi/character_blueprints.rb +3 -3
  23. data/lib/eve_online/esi/character_bookmark_folders.rb +3 -3
  24. data/lib/eve_online/esi/character_bookmarks.rb +3 -3
  25. data/lib/eve_online/esi/character_calendar.rb +3 -3
  26. data/lib/eve_online/esi/character_clones.rb +9 -9
  27. data/lib/eve_online/esi/character_fatigue.rb +3 -3
  28. data/lib/eve_online/esi/character_implants.rb +3 -3
  29. data/lib/eve_online/esi/character_industry_jobs.rb +5 -5
  30. data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
  31. data/lib/eve_online/esi/character_notifications.rb +3 -3
  32. data/lib/eve_online/esi/character_online.rb +5 -5
  33. data/lib/eve_online/esi/character_orders.rb +3 -3
  34. data/lib/eve_online/esi/character_portrait.rb +4 -5
  35. data/lib/eve_online/esi/character_skill_queue.rb +3 -3
  36. data/lib/eve_online/esi/character_skills.rb +11 -11
  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 +3 -3
  40. data/lib/eve_online/esi/corporation.rb +7 -7
  41. data/lib/eve_online/esi/corporation_blueprints.rb +3 -3
  42. data/lib/eve_online/esi/corporation_industry_jobs.rb +5 -5
  43. data/lib/eve_online/esi/corporation_orders.rb +3 -3
  44. data/lib/eve_online/esi/dogma_attribute.rb +7 -7
  45. data/lib/eve_online/esi/dogma_attributes.rb +2 -2
  46. data/lib/eve_online/esi/factions.rb +2 -2
  47. data/lib/eve_online/esi/market_history.rb +4 -4
  48. data/lib/eve_online/esi/models/alliance.rb +18 -18
  49. data/lib/eve_online/esi/models/alliance_icon.rb +5 -5
  50. data/lib/eve_online/esi/models/ancestry.rb +16 -16
  51. data/lib/eve_online/esi/models/asset.rb +22 -17
  52. data/lib/eve_online/esi/models/attributes.rb +20 -20
  53. data/lib/eve_online/esi/models/bloodline.rb +25 -25
  54. data/lib/eve_online/esi/models/blueprint.rb +16 -16
  55. data/lib/eve_online/esi/models/bookmark.rb +26 -26
  56. data/lib/eve_online/esi/models/character.rb +28 -28
  57. data/lib/eve_online/esi/models/{industry_job.rb → character_industry_job.rb} +1 -2
  58. data/lib/eve_online/esi/models/character_order.rb +39 -49
  59. data/lib/eve_online/esi/models/character_portrait.rb +4 -20
  60. data/lib/eve_online/esi/models/corporation.rb +35 -35
  61. data/lib/eve_online/esi/models/corporation_industry_job.rb +132 -0
  62. data/lib/eve_online/esi/models/corporation_order.rb +42 -42
  63. data/lib/eve_online/esi/models/dogma_attribute.rb +21 -21
  64. data/lib/eve_online/esi/models/event.rb +11 -11
  65. data/lib/eve_online/esi/models/faction.rb +20 -20
  66. data/lib/eve_online/esi/models/jump_clone.rb +8 -8
  67. data/lib/eve_online/esi/models/market_history.rb +16 -16
  68. data/lib/eve_online/esi/models/notification.rb +10 -10
  69. data/lib/eve_online/esi/models/online.rb +6 -6
  70. data/lib/eve_online/esi/models/race.rb +11 -11
  71. data/lib/eve_online/esi/models/server_status.rb +7 -7
  72. data/lib/eve_online/esi/models/skill.rb +6 -6
  73. data/lib/eve_online/esi/models/skill_queue_entry.rb +19 -19
  74. data/lib/eve_online/esi/models/type.rb +33 -33
  75. data/lib/eve_online/esi/models/wallet_journal_entry.rb +37 -33
  76. data/lib/eve_online/esi/races.rb +2 -2
  77. data/lib/eve_online/esi/server_status.rb +2 -2
  78. data/lib/eve_online/esi/universe_type.rb +8 -8
  79. data/lib/eve_online/esi/universe_types.rb +2 -2
  80. data/lib/eve_online/version.rb +1 -1
  81. data/mutant.sh +1 -1
  82. metadata +14 -11
  83. data/lib/eve_online/esi/alliances_names.rb +0 -32
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
- # EveOnline ESI API.
1
+ # EveOnline ESI API
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/eve_online.svg)](https://badge.fury.io/rb/eve_online)
4
4
  [![Gem Downloads](https://img.shields.io/gem/dt/eve_online.svg)](https://rubygems.org/gems/eve_online)
5
5
  [![Test Coverage](https://codeclimate.com/github/biow0lf/eve_online/badges/coverage.svg)](https://codeclimate.com/github/biow0lf/eve_online/coverage)
6
6
  [![Build Status](https://travis-ci.org/biow0lf/eve_online.svg?branch=master)](https://travis-ci.org/biow0lf/eve_online)
7
- [![Dependency Status](https://gemnasium.com/biow0lf/eve_online.svg)](https://gemnasium.com/biow0lf/eve_online)
8
7
  [![security](https://hakiri.io/github/biow0lf/eve_online/master.svg)](https://hakiri.io/github/biow0lf/eve_online/master)
9
8
 
10
9
  This gem implement Ruby API for EveOnline MMORPG (ESI).
@@ -21,12 +20,10 @@ This gem was extracted from [EveMonk](http://evemonk.com). Source code of evemon
21
20
  * [Useful links](#useful-links)
22
21
  * [Development](#development)
23
22
  * [Contributing](#contributing)
24
- * [TODO](#todo)
25
23
  * [Author](#author)
26
- * [Contributors. Thank you everyone!](#contributors-thank-you-everyone)
24
+ * [Contributors](#contributors)
27
25
  * [License](#license)
28
26
 
29
-
30
27
  ## Installation
31
28
 
32
29
  Add this line to your application's Gemfile:
@@ -37,28 +34,32 @@ gem 'eve_online'
37
34
 
38
35
  And then execute:
39
36
 
40
- $ bundle
37
+ ```shell
38
+ bundle
39
+ ```
41
40
 
42
41
  Or install it yourself as:
43
42
 
44
- $ gem install eve_online
43
+ ```shell
44
+ gem install eve_online
45
+ ```
45
46
 
46
47
  ## Supported ruby versions
47
48
 
48
- * MRI 2.3
49
- * MRI 2.4
50
- * MRI 2.5
51
- * MRI (head)
52
- * JRuby 9.2.0.0
53
- * JRuby (head)
49
+ * MRI 2.3
50
+ * MRI 2.4
51
+ * MRI 2.5
52
+ * MRI (head)
53
+ * JRuby 9.2.0.0
54
+ * JRuby (head)
54
55
 
55
56
  ## Supported rails versions
56
57
 
57
- * 4.2
58
- * 5.0
59
- * 5.1
60
- * 5.2
61
- * Edge
58
+ * 4.2
59
+ * 5.0
60
+ * 5.1
61
+ * 5.2
62
+ * Edge
62
63
 
63
64
  ## Usage examples
64
65
 
@@ -85,21 +86,21 @@ alliance = EveOnline::ESI::Alliance.new(options)
85
86
 
86
87
  alliance.scope # => nil
87
88
 
88
- alliance.as_json # => {:name=>"Kids With Guns Alliance",
89
- # :ticker=>"-KWG-",
89
+ alliance.as_json # => {:creator_corporation_id=>98306624,
90
90
  # :creator_id=>94195096,
91
- # :creator_corporation_id=>98306624,
92
- # :executor_corporation_id=>98306624,
93
91
  # :date_founded=>Sun, 03 May 2015 19:45:17 UTC +00:00,
94
- # :faction_id=>nil}
92
+ # :executor_corporation_id=>98306624,
93
+ # :faction_id=>nil,
94
+ # :name=>"Kids With Guns Alliance",
95
+ # :ticker=>"-KWG-"}
95
96
 
96
- alliance.name # => "Kids With Guns Alliance"
97
- alliance.ticker # => "-KWG-"
98
- alliance.creator_id # => 94195096
99
97
  alliance.creator_corporation_id # => 98306624
100
- alliance.executor_corporation_id # => 98306624
98
+ alliance.creator_id # => 94195096
101
99
  alliance.date_founded # => Sun, 03 May 2015 19:45:17 UTC +00:00
100
+ alliance.executor_corporation_id # => 98306624
102
101
  alliance.faction_id # => nil
102
+ alliance.name # => "Kids With Guns Alliance"
103
+ alliance.ticker # => "-KWG-"
103
104
  ```
104
105
 
105
106
  #### List alliance's corporations
@@ -125,30 +126,11 @@ alliance_icon = EveOnline::ESI::AllianceIcon.new(options)
125
126
 
126
127
  alliance_icon.scope # => nil
127
128
 
128
- alliance_icon.as_json # => {:icon_small=>"http://image.eveonline.com/Alliance/99005443_64.png", :icon_medium=>"http://image.eveonline.com/Alliance/99005443_128.png"}
129
+ alliance_icon.as_json # => {:icon_medium=>"http://image.eveonline.com/Alliance/99005443_128.png",
130
+ # :icon_small=>"http://image.eveonline.com/Alliance/99005443_64.png"}
129
131
 
130
- alliance_icon.icon_small # => "http://image.eveonline.com/Alliance/99005443_64.png"
131
132
  alliance_icon.icon_medium # => "http://image.eveonline.com/Alliance/99005443_128.png"
132
- ```
133
-
134
- #### Get alliance names
135
-
136
- ```ruby
137
- options = { alliance_ids: [99005443, 99005443] }
138
-
139
- alliances_names = EveOnline::ESI::AlliancesNames.new(options)
140
-
141
- alliances_names.scope # => nil
142
-
143
- alliances_names.alliances.size # => 2
144
-
145
- alliance = alliances_names.alliances.first
146
-
147
- alliance.as_json
148
- # => {:alliance_id=>99005443, :alliance_name=>"Kids With Guns Alliance"}
149
-
150
- alliance.alliance_id # => 99005443
151
- alliance.alliance_name # => "Kids With Guns Alliance"
133
+ alliance_icon.icon_small # => "http://image.eveonline.com/Alliance/99005443_64.png"
152
134
  ```
153
135
 
154
136
  ### Assets
@@ -166,21 +148,23 @@ character_assets.assets.size # => 486
166
148
 
167
149
  asset = character_assets.assets.first
168
150
 
169
- asset.as_json # => {:type_id=>2629,
170
- # :location_id=>60008674,
171
- # :location_type=>"station",
172
- # :item_id=>1006604012678,
151
+ asset.as_json # => {:is_blueprint_copy=>true,
152
+ # :is_singleton=>true,
153
+ # :item_id=>716338097,
173
154
  # :location_flag=>"Hangar",
174
- # :is_singleton=>false,
175
- # :quantity=>16156}
176
-
177
- asset.type_id # => 2629
178
- asset.location_id # => 60008674
179
- asset.location_type # => "station"
180
- asset.item_id # => 1006604012678
155
+ # :location_id=>1027847409779,
156
+ # :location_type=>"other",
157
+ # :quantity=>1
158
+ # :type_id=>1010}
159
+
160
+ asset.is_blueprint_copy # => true
161
+ asset.is_singleton # => true
162
+ asset.item_id # => 716338097
181
163
  asset.location_flag # => "Hangar"
182
- asset.is_singleton # => false
183
- asset.quantity # => 16156
164
+ asset.location_id # => 1027847409779
165
+ asset.location_type # => "other"
166
+ asset.quantity # => 1
167
+ asset.type_id # => 1010
184
168
 
185
169
  # TODO: add pagination support
186
170
  ```
@@ -193,7 +177,7 @@ asset.quantity # => 16156
193
177
 
194
178
  #### Get corporation asset locations
195
179
 
196
- #### Get coporation asset names (typo in swagger)
180
+ #### Get corporation asset names
197
181
 
198
182
  ### Bookmarks
199
183
 
@@ -211,30 +195,32 @@ character_bookmarks.bookmarks.size # => 20
211
195
  bookmark = character_bookmarks.bookmarks.first
212
196
 
213
197
  bookmark.as_json # => {:bookmark_id=>4,
214
- # :folder_id=>5,
198
+ # :coordinate_x=>-144951231521.81625,
199
+ # :coordinate_y=>164030047870.25558,
200
+ # :coordinate_z=>211467631848.1311,
215
201
  # :created=>Mon, 09 Jul 2012 22:38:31 UTC +00:00,
216
- # :label=>"Stargate",
217
- # :notes=>"This is a stargate",
218
- # :location_id=>30003430,
219
202
  # :creator_id=>2112625428,
203
+ # :folder_id=>5,
220
204
  # :item_id=>30003496,
221
205
  # :item_type_id=>5,
222
- # :coordinate_x=>-144951231521.81625,
223
- # :coordinate_y=>164030047870.25558,
224
- # :coordinate_z=>211467631848.1311}
206
+ # :label=>"Stargate",
207
+ # :location_id=>30003430,
208
+ # :notes=>"This is a stargate"}
225
209
 
226
210
  bookmark.bookmark_id # => 4
227
- bookmark.folder_id # => 5
211
+ bookmark.coordinate_x # => -144951231521.81625
212
+ bookmark.coordinate_y # => 164030047870.25558
213
+ bookmark.coordinate_z # => 211467631848.1311
228
214
  bookmark.created # => Mon, 09 Jul 2012 22:38:31 UTC +00:00
229
- bookmark.label # => "Stargate"
230
- bookmark.notes # => "This is a stargate"
231
- bookmark.location_id # => 30003430
232
215
  bookmark.creator_id # => 2112625428
216
+ bookmark.folder_id # => 5
233
217
  bookmark.item_id # => 30003496
234
218
  bookmark.item_type_id # => 5
235
- bookmark.coordinate_x # => -144951231521.81625
236
- bookmark.coordinate_y # => 164030047870.25558
237
- bookmark.coordinate_z # => 211467631848.1311
219
+ bookmark.label # => "Stargate"
220
+ bookmark.location_id # => 30003430
221
+ bookmark.notes # => "This is a stargate"
222
+
223
+ # TODO: add pagination support
238
224
  ```
239
225
 
240
226
  #### List bookmark folders
@@ -255,6 +241,8 @@ bookmark_folder.as_json # => {:folder_id=>5,
255
241
 
256
242
  bookmark_folder.folder_id # => 5
257
243
  bookmark_folder.name # => "Icecream"
244
+
245
+ # TODO: add pagination support
258
246
  ```
259
247
 
260
248
  #### List corporation bookmarks
@@ -276,17 +264,17 @@ character_calendar.events.size # => 22
276
264
 
277
265
  event = character_calendar.events.first
278
266
 
279
- event.as_json # => {:event_id=>1635240,
280
- # :event_date=>Tue, 06 Mar 2018 15:00:59 UTC +00:00,
281
- # :title=>"Moon extraction for 66-PMM - GoldMine-5-",
267
+ event.as_json # => {:event_date=>Tue, 06 Mar 2018 15:00:59 UTC +00:00,
268
+ # :event_id=>1635240,
269
+ # :event_response=>"not_responded",
282
270
  # :importance=>0,
283
- # :event_response=>"not_responded"}
271
+ # :title=>"Moon extraction for 66-PMM - GoldMine-5-"}
284
272
 
285
- event.event_id # => 1635240
286
273
  event.event_date # => Tue, 06 Mar 2018 15:00:59 UTC +00:00
287
- event.title # => "Moon extraction for 66-PMM - GoldMine-5-"
288
- event.importance # => 0
274
+ event.event_id # => 1635240
289
275
  event.event_response # => "not_responded"
276
+ event.importance # => 0
277
+ event.title # => "Moon extraction for 66-PMM - GoldMine-5-"
290
278
 
291
279
  # TODO: add from_event support
292
280
  ```
@@ -308,20 +296,29 @@ character = EveOnline::ESI::Character.new(options)
308
296
 
309
297
  character.scope # => nil
310
298
 
311
- character.as_json
312
- # => {:corporation_id=>1000168, :birthday=>Fri, 15 Jan 2010 15:26:00 UTC +00:00, :name=>"Green Black", :gender=>"male", :race_id=>2, :bloodline_id=>4, :description=>"", :alliance_id=>12345678, :ancestry_id=>24, :security_status=>1.8694881661345457, :faction_id=>500001}
299
+ character.as_json # => {:alliance_id=>12345678,
300
+ # :ancestry_id=>24,
301
+ # :birthday=>Fri, 15 Jan 2010 15:26:00 UTC +00:00,
302
+ # :bloodline_id=>4,
303
+ # :corporation_id=>1000168,
304
+ # :description=>"",
305
+ # :faction_id=>500001,
306
+ # :gender=>"male",
307
+ # :name=>"Green Black",
308
+ # :race_id=>2,
309
+ # :security_status=>1.8694881661345457}
313
310
 
314
- character.corporation_id # => 1000168
311
+ character.alliance_id # => 12345678
312
+ character.ancestry_id # => 24
315
313
  character.birthday # => Fri, 15 Jan 2010 15:26:00 UTC +00:00
316
- character.name # => "Green Black"
317
- character.gender # => "male"
318
- character.race_id # => 2
319
314
  character.bloodline_id # => 4
315
+ character.corporation_id # => 1000168
320
316
  character.description # => ""
321
- character.alliance_id # => 12345678
322
- character.ancestry_id # => 24
323
- character.security_status # => 1.8694881661345457
324
317
  character.faction_id # => 500001
318
+ character.gender # => "male"
319
+ character.name # => "Green Black"
320
+ character.race_id # => 2
321
+ character.security_status # => 1.8694881661345457
325
322
  ```
326
323
 
327
324
  #### Get agents research
@@ -360,8 +357,6 @@ blueprint.type_id # => 1010
360
357
  # TODO: add pagination support
361
358
  ```
362
359
 
363
- #### Get chat channels
364
-
365
360
  #### Get corporation history
366
361
 
367
362
  #### Calculate a CSPA charge cost
@@ -375,7 +370,9 @@ character_fatigue = EveOnline::ESI::CharacterFatigue.new(options)
375
370
 
376
371
  character_fatigue.scope # => "esi-characters.read_fatigue.v1"
377
372
 
378
- character_fatigue.as_json # => {:jump_fatigue_expire_date=>nil, :last_jump_date=>nil, :last_update_date=>nil}
373
+ character_fatigue.as_json # => {:jump_fatigue_expire_date=>nil,
374
+ # :last_jump_date=>nil,
375
+ # :last_update_date=>nil}
379
376
 
380
377
  character_fatigue.jump_fatigue_expire_date # => nil
381
378
  character_fatigue.last_jump_date # => nil
@@ -399,20 +396,21 @@ character_notifications.notifications.size # => 500
399
396
 
400
397
  notification = character_notifications.notifications.first
401
398
 
402
- notification.as_json # => {:notification_id=>774328832,
403
- # :type=>"AllWarDeclaredMsg",
399
+ notification.as_json # => {:is_read=>nil,
400
+ # :notification_id=>774328832,
404
401
  # :sender_id=>1000125,
405
402
  # :sender_type=>"corporation",
403
+ # :text=>"againstID: 99005443\ncost: 0\ndeclaredByID: 98442842\ndelayHours: 24\nhostileState: 0\n"
406
404
  # :timestamp=>Thu, 01 Mar 2018 13:48:00 UTC +00:00,
407
- # :is_read=>nil,
408
- # :text=>"againstID: 99005443\ncost: 0\ndeclaredByID: 98442842\ndelayHours: 24\nhostileState: 0\n"}
405
+ # :type=>"AllWarDeclaredMsg"}
409
406
 
407
+ notification.is_read # => nil
410
408
  notification.notification_id # => 774328832
411
- notification.type # => "AllWarDeclaredMsg"
412
409
  notification.sender_id # => 1000125
413
410
  notification.sender_type # => "corporation"
414
- notification.timestamp # => Thu, 01 Mar 2018 13:48:00 UTC +00:00
415
411
  notification.text # => "againstID: 99005443\ncost: 0\ndeclaredByID: 98442842\ndelayHours: 24\nhostileState: 0\n"
412
+ notification.timestamp # => Thu, 01 Mar 2018 13:48:00 UTC +00:00
413
+ notification.type # => "AllWarDeclaredMsg"
416
414
  ```
417
415
 
418
416
  #### Get new contact notifications
@@ -426,13 +424,15 @@ character_portrait = EveOnline::ESI::CharacterPortrait.new(options)
426
424
 
427
425
  character_portrait.scope # => nil
428
426
 
429
- character_portrait.as_json
430
- # => {:small=>"http://image.eveonline.com/Character/90729314_64.jpg", :medium=>"http://image.eveonline.com/Character/90729314_128.jpg", :large=>"http://image.eveonline.com/Character/90729314_256.jpg", :huge=>"http://image.eveonline.com/Character/90729314_512.jpg"}
427
+ character_portrait.as_json # => {:medium=>"http://image.eveonline.com/Character/90729314_128.jpg",
428
+ # :large=>"http://image.eveonline.com/Character/90729314_256.jpg",
429
+ # :huge=>"http://image.eveonline.com/Character/90729314_512.jpg"
430
+ # :small=>"http://image.eveonline.com/Character/90729314_64.jpg"}
431
431
 
432
- character_portrait.small # => "http://image.eveonline.com/Character/90729314_64.jpg"
433
432
  character_portrait.medium # => "http://image.eveonline.com/Character/90729314_128.jpg"
434
433
  character_portrait.large # => "http://image.eveonline.com/Character/90729314_256.jpg"
435
434
  character_portrait.huge # => "http://image.eveonline.com/Character/90729314_512.jpg"
435
+ character_portrait.small # => "http://image.eveonline.com/Character/90729314_64.jpg"
436
436
  ```
437
437
 
438
438
  #### Get character corporation roles
@@ -450,7 +450,9 @@ character_standing.standings.size # => 37
450
450
 
451
451
  standing = character_standing.standings.first
452
452
 
453
- standing.as_json # => {:from_id=>500001, :from_type=>"faction", :standing=>0.3303719111639991}
453
+ standing.as_json # => {:from_id=>500001,
454
+ # :from_type=>"faction",
455
+ # :standing=>0.3303719111639991}
454
456
 
455
457
  standing.from_id # => 500001
456
458
  standing.from_type # => "faction"
@@ -463,8 +465,6 @@ standing.standing # => 0.3303719111639991
463
465
 
464
466
  #### Character affiliation
465
467
 
466
- #### Get character names
467
-
468
468
  ### Clones
469
469
 
470
470
  #### Get clones
@@ -476,22 +476,26 @@ character_clones = EveOnline::ESI::CharacterClones.new(options)
476
476
 
477
477
  character_clones.scope # => "esi-clones.read_clones.v1"
478
478
 
479
- character_clones.last_clone_jump_date # => Fri, 27 Jul 2012 14:50:11 UTC +00:00
480
-
481
- character_clones.home_location.as_json # => {:location_id=>61000032, :location_type=>"station"}
479
+ character_clones.home_location.as_json # => {:location_id=>61000032,
480
+ # :location_type=>"station"}
482
481
 
483
482
  character_clones.jump_clones.size # => 2
484
483
 
485
484
  jump_clone = character_clones.jump_clones.first
486
485
 
487
- jump_clone.as_json
488
- # => {:jump_clone_id=>22357400, :name=>nil, :location_id=>61000032, :location_type=>"station", :implants=>[22118]}
486
+ jump_clone.as_json # => {:implants=>[22118],
487
+ # :jump_clone_id=>22357400,
488
+ # :location_id=>61000032,
489
+ # :location_type=>"station",
490
+ # :name=>nil}
489
491
 
492
+ jump_clone.implants # => [22118]
490
493
  jump_clone.jump_clone_id # => 22357400
491
- jump_clone.name # => nil
492
494
  jump_clone.location_id # => 61000032
493
495
  jump_clone.location_type # => "station"
494
- jump_clone.implants # => [22118]
496
+ jump_clone.name # => nil
497
+
498
+ character_clones.last_clone_jump_date # => Fri, 27 Jul 2012 14:50:11 UTC +00:00
495
499
 
496
500
  character_clones.last_station_change_date # => Tue, 30 Jun 2015 21:51:13 UTC +00:00
497
501
  ```
@@ -514,6 +518,8 @@ character_implants.implants # => [9899, 9941, 9942, 9943, 9956]
514
518
 
515
519
  #### Get alliance contacts
516
520
 
521
+ #### Get alliance contact labels
522
+
517
523
  #### Delete contacts
518
524
 
519
525
  #### Get contacts
@@ -526,6 +532,8 @@ character_implants.implants # => [9899, 9941, 9942, 9943, 9956]
526
532
 
527
533
  #### Get corporation contacts
528
534
 
535
+ #### Get corporation contact labels
536
+
529
537
  ### Contracts
530
538
 
531
539
  #### Get contracts
@@ -534,7 +542,13 @@ character_implants.implants # => [9899, 9941, 9942, 9943, 9956]
534
542
 
535
543
  #### Get contract items
536
544
 
537
- #### Get coporation contracts (typo in swagger)
545
+ #### Get public contracts
546
+
547
+ #### Get public contract bids
548
+
549
+ #### Get public contract items
550
+
551
+ #### Get corporation contracts
538
552
 
539
553
  #### Get corporation contract bids
540
554
 
@@ -551,34 +565,33 @@ corporation = EveOnline::ESI::Corporation.new(options)
551
565
 
552
566
  corporation.scope # => nil
553
567
 
554
- corporation.as_json
555
- # => {:name=>"Bullshit Bingo Club",
556
- # :ticker=>"BUBIC",
557
- # :member_count=>60,
558
- # :ceo_id=>1721864142,
559
- # :alliance_id=>99001258,
560
- # :description=>"",
561
- # :tax_rate=>0.1,
562
- # :date_founded=>Mon, 11 Jul 2016 14:22:17 UTC +00:00,
563
- # :creator_id=>1721864142,
564
- # :corporation_url=>"http://",
565
- # :faction_id=>nil,
566
- # :home_station_id=>60011893,
567
- # :shares=>1000}
568
+ corporation.as_json # => {:alliance_id=>99001258,
569
+ # :ceo_id=>1721864142,
570
+ # :creator_id=>1721864142,
571
+ # :date_founded=>Mon, 11 Jul 2016 14:22:17 UTC +00:00,
572
+ # :description=>"",
573
+ # :faction_id=>nil,
574
+ # :home_station_id=>60011893,
575
+ # :member_count=>60,
576
+ # :name=>"Bullshit Bingo Club",
577
+ # :shares=>1000,
578
+ # :tax_rate=>0.1,
579
+ # :ticker=>"BUBIC",
580
+ # :corporation_url=>"http://"}
568
581
 
569
- corporation.name # => "Bullshit Bingo Club"
570
- corporation.ticker # => "BUBIC"
571
- corporation.member_count # => 60
572
- corporation.ceo_id # => 1721864142
573
582
  corporation.alliance_id # => 99001258
574
- corporation.description # => ""
575
- corporation.tax_rate # => 0.1
576
- corporation.date_founded # => Mon, 11 Jul 2016 14:22:17 UTC +00:00
583
+ corporation.ceo_id # => 1721864142
577
584
  corporation.creator_id # => 1721864142
578
- corporation.corporation_url # => "http://"
585
+ corporation.date_founded # => Mon, 11 Jul 2016 14:22:17 UTC +00:00
586
+ corporation.description # => ""
579
587
  corporation.faction_id # => nil
580
588
  corporation.home_station_id # => 60011893
589
+ corporation.member_count # => 60
590
+ corporation.name # => "Bullshit Bingo Club"
581
591
  corporation.shares # => 1000
592
+ corporation.tax_rate # => 0.1
593
+ corporation.ticker # => "BUBIC"
594
+ corporation.corporation_url # => "http://"
582
595
  ```
583
596
 
584
597
  #### Get alliance history
@@ -637,10 +650,6 @@ blueprint.type_id # => 31803
637
650
 
638
651
  #### Track corporation members
639
652
 
640
- #### Get corporation outposts
641
-
642
- #### Get corporation outpost details
643
-
644
653
  #### Get corporation member roles
645
654
 
646
655
  #### Get corporation member roles history
@@ -657,8 +666,6 @@ blueprint.type_id # => 31803
657
666
 
658
667
  #### Get corporation titles
659
668
 
660
- #### Get corporation names
661
-
662
669
  #### Get npc corporations
663
670
 
664
671
  ### Dogma
@@ -678,35 +685,37 @@ dogma_attributes.attributes.first # => 2
678
685
  #### Get attribute information
679
686
 
680
687
  ```ruby
681
- options = { attribute_id: 2 }
688
+ options = { id: 2 }
682
689
 
683
690
  dogma_attribute = EveOnline::ESI::DogmaAttribute.new(options)
684
691
 
685
692
  dogma_attribute.scope # => nil
686
693
 
687
- dogma_attribute.as_json # => {:id=>2,
688
- # :name=>"isOnline",
694
+ dogma_attribute.as_json # => {:attribute_id=>2,
695
+ # :default_value=>0.0,
689
696
  # :description=>"Boolean to store status of online effect",
697
+ # :display_name=>"",
698
+ # :high_is_good=>true,
690
699
  # :icon_id=>nil,
691
- # :default_value=>0.0,
700
+ # :name=>"isOnline",
692
701
  # :published=>nil,
693
- # :display_name=>"",
694
- # :unit_id=>nil,
695
702
  # :stackable=>true,
696
- # :high_is_good=>true}
703
+ # :unit_id=>nil}
697
704
 
698
- dogma_attribute.id # => 2
699
- dogma_attribute.name # => "isOnline"
705
+ dogma_attribute.attribute_id # => 2
706
+ dogma_attribute.default_value # => 0.0
700
707
  dogma_attribute.description # => "Boolean to store status of online effect"
708
+ dogma_attribute.display_name # => ""
709
+ dogma_attribute.high_is_good # => true
701
710
  dogma_attribute.icon_id # => nil
702
- dogma_attribute.default_value # => 0.0
711
+ dogma_attribute.name # => "isOnline"
703
712
  dogma_attribute.published # => nil
704
- dogma_attribute.display_name # => ""
705
- dogma_attribute.unit_id # => nil
706
713
  dogma_attribute.stackable # => true
707
- dogma_attribute.high_is_good # => true
714
+ dogma_attribute.unit_id # => nil
708
715
  ```
709
716
 
717
+ #### Get dynamic item information
718
+
710
719
  #### Get effects
711
720
 
712
721
  #### Get effect information
@@ -867,13 +876,13 @@ job.as_json # => {:activity_id=>1,
867
876
  # :installer_id=>93174304,
868
877
  # :job_id=>344736432,
869
878
  # :licensed_runs=>1,
879
+ # :location_id=>60006382,
870
880
  # :output_location_id=>1024956764558,
871
881
  # :pause_date=>nil,
872
882
  # :probability=>1.0,
873
883
  # :product_type_id=>28606,
874
884
  # :runs=>1,
875
885
  # :start_date=>Sat, 18 Nov 2017 11:20:14 UTC +00:00,
876
- # :station_id=>nil,
877
886
  # :status=>"active",
878
887
  # :successful_runs=>nil}
879
888
 
@@ -890,13 +899,13 @@ job.facility_id # => 1023579231924
890
899
  job.installer_id # => 93174304
891
900
  job.job_id # => 344736432
892
901
  job.licensed_runs # => 1
902
+ job.location_id # => 60006382
893
903
  job.output_location_id # => 1024956764558
894
904
  job.pause_date # => nil
895
905
  job.probability # => 1.0
896
906
  job.product_type_id # => 28606
897
907
  job.runs # => 1
898
908
  job.start_date # => Sat, 18 Nov 2017 11:20:14 UTC +00:00
899
- job.station_id # => nil
900
909
  job.status # => "active"
901
910
  job.successful_runs # => nil
902
911
 
@@ -932,13 +941,15 @@ character_online = EveOnline::ESI::CharacterOnline.new(options)
932
941
 
933
942
  character_online.scope # => "esi-location.read_online.v1"
934
943
 
935
- character_online.as_json
936
- # => {:online=>false, :last_login=>Sun, 15 Jan 2017 11:39:24 UTC +00:00, :last_logout=>Sun, 15 Jan 2017 11:31:22 UTC +00:00, :logins=>370}
944
+ character_online.as_json # => {:last_login=>Sun, 15 Jan 2017 11:39:24 UTC +00:00,
945
+ # :last_logout=>Sun, 15 Jan 2017 11:31:22 UTC +00:00,
946
+ # :logins=>370,
947
+ # :online=>false}
937
948
 
938
- character_online.online # => false
939
949
  character_online.last_login # => Sun, 15 Jan 2017 11:39:24 UTC +00:00
940
950
  character_online.last_logout # => Sun, 15 Jan 2017 11:31:22 UTC +00:00
941
951
  character_online.logins # => 370
952
+ character_online.online # => false
942
953
  ```
943
954
 
944
955
  #### Get current ship
@@ -1003,22 +1014,20 @@ order = character_orders.orders.first
1003
1014
 
1004
1015
  order.as_json
1005
1016
 
1006
- order.order_id
1007
- order.type_id
1008
- order.region_id
1009
- order.location_id
1010
- order.range
1011
- order.is_buy_order
1012
- order.price
1017
+ order.duration,
1018
+ order.escrow,
1019
+ order.is_buy_order,
1020
+ order.is_corporation,
1021
+ order.issued,
1022
+ order.location_id,
1023
+ order.min_volume,
1024
+ order.order_id,
1025
+ order.price,
1026
+ order.range,
1027
+ order.region_id,
1028
+ order.type_id,
1029
+ order.volume_remain,
1013
1030
  order.volume_total
1014
- order.volume_remain
1015
- order.issued
1016
- order.state
1017
- order.min_volume
1018
- order.account_id
1019
- order.duration
1020
- order.is_corp
1021
- order.escrow
1022
1031
 
1023
1032
  # TODO: update example
1024
1033
  ```
@@ -1040,25 +1049,27 @@ order = corporation_orders.orders.first
1040
1049
 
1041
1050
  order.as_json
1042
1051
 
1043
- order.order_id
1044
- order.type_id
1045
- order.region_id
1046
- order.location_id
1047
- order.range
1052
+ order.duration
1053
+ order.escrow
1048
1054
  order.is_buy_order
1049
- order.price
1050
- order.volume_total
1051
- order.volume_remain
1052
1055
  order.issued
1053
- order.state
1056
+ order.issued_by
1057
+ order.location_id
1054
1058
  order.min_volume
1059
+ order.order_id
1060
+ order.price
1061
+ order.range
1062
+ order.region_id
1063
+ order.type_id
1064
+ order.volume_remain
1065
+ order.volume_total
1055
1066
  order.wallet_division
1056
- order.duration
1057
- order.escrow
1058
1067
 
1059
1068
  # TODO: update example
1060
1069
 
1061
1070
  # TODO: add pagination support
1071
+
1072
+ # TODO: update
1062
1073
  ```
1063
1074
 
1064
1075
  #### List historical orders from a corporation
@@ -1078,19 +1089,19 @@ statistics.size # => 417
1078
1089
 
1079
1090
  stats_today = statistics.last
1080
1091
 
1081
- stats_today.as_json # => {:date=>Fri, 24 Nov 2017 00:00:00 UTC +00:00,
1082
- # :order_count=>52,
1083
- # :volume=>52,
1092
+ stats_today.as_json # => {:average=>754702326.19,
1093
+ # :date=>Fri, 24 Nov 2017 00:00:00 UTC +00:00,
1084
1094
  # :highest=>769999999.99,
1085
- # :average=>754702326.19,
1086
- # :lowest=>701100002.49}
1095
+ # :lowest=>701100002.49,
1096
+ # :order_count=>52,
1097
+ # :volume=>52}
1087
1098
 
1099
+ stats_today.average # => 754702326.19
1088
1100
  stats_today.date # => Fri, 24 Nov 2017 00:00:00 UTC +00:00
1089
- stats_today.order_count # => 52
1090
- stats_today.volume # => 52
1091
1101
  stats_today.highest # => 769999999.99
1092
- stats_today.average # => 754702326.19
1093
1102
  stats_today.lowest # => 701100002.49
1103
+ stats_today.order_count # => 52
1104
+ stats_today.volume # => 52
1094
1105
  ```
1095
1106
 
1096
1107
  #### List orders in a region
@@ -1148,23 +1159,23 @@ character_attributes = EveOnline::ESI::CharacterAttributes.new(options)
1148
1159
 
1149
1160
  character_attributes.scope # => "esi-skills.read_skills.v1"
1150
1161
 
1151
- character_attributes.as_json # => {:charisma=>20,
1162
+ character_attributes.as_json # => {:accrued_remap_cooldown_date=>Sun, 06 May 2012 12:58:06 UTC +00:00,
1163
+ # :bonus_remaps=>2,
1164
+ # :charisma=>20,
1152
1165
  # :intelligence=>24,
1166
+ # :last_remap_date=>Sat, 07 May 2011 12:58:06 UTC +00:00,
1153
1167
  # :memory=>24,
1154
1168
  # :perception=>23,
1155
- # :willpower=>23,
1156
- # :bonus_remaps=>2,
1157
- # :last_remap_date=>Sat, 07 May 2011 12:58:06 UTC +00:00,
1158
- # :accrued_remap_cooldown_date=>Sun, 06 May 2012 12:58:06 UTC +00:00}
1169
+ # :willpower=>23}
1159
1170
 
1171
+ character_attributes.accrued_remap_cooldown_date # => Sun, 06 May 2012 12:58:06 UTC +00:00
1172
+ character_attributes.bonus_remaps # => 2
1160
1173
  character_attributes.charisma # => 20
1161
1174
  character_attributes.intelligence # => 24
1175
+ character_attributes.last_remap_date # => Sat, 07 May 2011 12:58:06 UTC +00:00
1162
1176
  character_attributes.memory # => 24
1163
1177
  character_attributes.perception # => 23
1164
1178
  character_attributes.willpower # => 23
1165
- character_attributes.bonus_remaps # => 2
1166
- character_attributes.last_remap_date # => Sat, 07 May 2011 12:58:06 UTC +00:00
1167
- character_attributes.accrued_remap_cooldown_date # => Sun, 06 May 2012 12:58:06 UTC +00:00
1168
1179
  ```
1169
1180
 
1170
1181
  #### Get character's skill queue
@@ -1180,17 +1191,23 @@ character_skill_queue.skills.size # => 50
1180
1191
 
1181
1192
  skill_queue_entry = character_skill_queue.skills.first
1182
1193
 
1183
- skill_queue_entry.as_json
1184
- # => {:skill_id=>12487, :finished_level=>3, :queue_position=>0, :finish_date=>Mon, 16 Jan 2017 03:00:35 UTC +00:00, :start_date=>Sun, 15 Jan 2017 11:38:25 UTC +00:00, :training_start_sp=>7263, :level_end_sp=>40000, :level_start_sp=>7072}
1194
+ skill_queue_entry.as_json # => {:finish_date=>Mon, 16 Jan 2017 03:00:35 UTC +00:00,
1195
+ # :finished_level=>3,
1196
+ # :level_end_sp=>40000,
1197
+ # :level_start_sp=>7072
1198
+ # :queue_position=>0,
1199
+ # :skill_id=>12487,
1200
+ # :start_date=>Sun, 15 Jan 2017 11:38:25 UTC +00:00,
1201
+ # :training_start_sp=>7263}
1185
1202
 
1186
- skill_queue_entry.skill_id # => 12487
1203
+ skill_queue_entry.finish_date # => Mon, 16 Jan 2017 03:00:35 UTC +00:00
1187
1204
  skill_queue_entry.finished_level # => 3
1205
+ skill_queue_entry.level_end_sp # => 40000
1206
+ skill_queue_entry.level_start_sp # => 7072
1188
1207
  skill_queue_entry.queue_position # => 0
1189
- skill_queue_entry.finish_date # => Mon, 16 Jan 2017 03:00:35 UTC +00:00
1208
+ skill_queue_entry.skill_id # => 12487
1190
1209
  skill_queue_entry.start_date # => Sun, 15 Jan 2017 11:38:25 UTC +00:00
1191
1210
  skill_queue_entry.training_start_sp # => 7263
1192
- skill_queue_entry.level_end_sp # => 40000
1193
- skill_queue_entry.level_start_sp # => 7072
1194
1211
  ```
1195
1212
 
1196
1213
  #### Get character skills
@@ -1202,22 +1219,24 @@ character_skills = EveOnline::ESI::CharacterSkills.new(options)
1202
1219
 
1203
1220
  character_skills.scope # => "esi-skills.read_skills.v1"
1204
1221
 
1205
- character_skills.total_sp # => 50362576
1206
- character_skills.unallocated_sp # => 656000
1207
-
1208
1222
  character_skills.as_json # => {:total_sp=>50362576, :unallocated_sp=>656000}
1209
1223
 
1210
1224
  character_skills.skills.size # => 179
1211
1225
 
1212
1226
  skill = character_skills.skills.first
1213
1227
 
1214
- skill.as_json
1215
- # => {:skill_id=>22536, :skillpoints_in_skill=>500, :trained_skill_level=>1, :active_skill_level=>0}
1228
+ skill.as_json # => {:active_skill_level=>0,
1229
+ # :skill_id=>22536,
1230
+ # :skillpoints_in_skill=>500,
1231
+ # :trained_skill_level=>1}
1216
1232
 
1233
+ skill.active_skill_level # => 0
1217
1234
  skill.skill_id # => 22536
1218
1235
  skill.skillpoints_in_skill # => 500
1219
1236
  skill.trained_skill_level # => 1
1220
- skill.active_skill_level # => 0
1237
+
1238
+ character_skills.total_sp # => 50362576
1239
+ character_skills.unallocated_sp # => 656000
1221
1240
  ```
1222
1241
 
1223
1242
  ### Sovereignty
@@ -1237,11 +1256,14 @@ server_status = EveOnline::ESI::ServerStatus.new
1237
1256
 
1238
1257
  server_status.scope # => nil
1239
1258
 
1240
- server_status.as_json # => {:start_time=>Tue, 11 Apr 2017 11:05:35 UTC +00:00, :players=>34545, :server_version=>"1135520", :vip=>nil}
1259
+ server_status.as_json # => {:players=>34545,
1260
+ # :server_version=>"1135520",
1261
+ # :start_time=>Tue, 11 Apr 2017 11:05:35 UTC +00:00,
1262
+ # :vip=>nil}
1241
1263
 
1242
- server_status.start_time # => Tue, 11 Apr 2017 11:05:35 UTC +00:00
1243
1264
  server_status.players # => 34545
1244
1265
  server_status.server_version # => "1135520"
1266
+ server_status.start_time # => Tue, 11 Apr 2017 11:05:35 UTC +00:00
1245
1267
  server_status.vip # => nil
1246
1268
  ```
1247
1269
 
@@ -1258,23 +1280,25 @@ ancestries.ancestries.size # => 42
1258
1280
 
1259
1281
  ancestry = ancestries.ancestries.first
1260
1282
 
1261
- ancestry.as_json # => {:ancestry_id=>24,
1262
- # :name=>"Slave Child",
1263
- # :bloodline_id=>4,
1283
+ ancestry.as_json # => {:bloodline_id=>4,
1264
1284
  # :description=>"Millions of slaves within the Amarr Empire dream of escape...",
1265
- # :short_description=>"Torn from the cold and brought to the warmth of a new life.",
1266
- # :icon_id=>1664}
1285
+ # :icon_id=>1664,
1286
+ # :ancestry_id=>24,
1287
+ # :name=>"Slave Child",
1288
+ # :short_description=>"Torn from the cold and brought to the warmth of a new life."}
1267
1289
 
1268
- ancestry.ancestry_id # => 24
1269
- ancestry.name # => "Slave Child"
1270
1290
  ancestry.bloodline_id # => 4
1271
1291
  ancestry.description # => "Millions of slaves within the Amarr Empire dream of escape..."
1272
- ancestry.short_description # => "Torn from the cold and brought to the warmth of a new life."
1273
1292
  ancestry.icon_id # => 1664
1293
+ ancestry.ancestry_id # => 24
1294
+ ancestry.name # => "Slave Child"
1295
+ ancestry.short_description # => "Torn from the cold and brought to the warmth of a new life."
1274
1296
 
1275
1297
  # TODO: add languages
1276
1298
  ```
1277
1299
 
1300
+ #### Get asteroid belt information
1301
+
1278
1302
  #### Get bloodlines
1279
1303
 
1280
1304
  ```ruby
@@ -1287,28 +1311,28 @@ bloodlines.bloodlines.size # => 15
1287
1311
  bloodline = bloodlines.bloodlines.first
1288
1312
 
1289
1313
  bloodline.as_json # => {:bloodline_id=>4,
1290
- # :name=>"Brutor",
1314
+ # :charisma=>6,
1315
+ # :corporation_id=>1000049,
1291
1316
  # :description=>"A martial, strong-willed people, the Brutor...",
1317
+ # :intelligence=>4,
1318
+ # :memory=>4,
1319
+ # :name=>"Brutor",
1320
+ # :perception=>9,
1292
1321
  # :race_id=>2,
1293
1322
  # :ship_type_id=>588,
1294
- # :corporation_id=>1000049,
1295
- # :perception=>9,
1296
- # :willpower=>7,
1297
- # :charisma=>6,
1298
- # :memory=>4,
1299
- # :intelligence=>4}
1323
+ # :willpower=>7}
1300
1324
 
1301
1325
  bloodline.bloodline_id # => 4
1302
- bloodline.name # => "Brutor"
1326
+ bloodline.charisma # => 6
1327
+ bloodline.corporation_id # => 1000049
1303
1328
  bloodline.description # => "A martial, strong-willed people, the Brutor..."
1329
+ bloodline.intelligence # => 4
1330
+ bloodline.memory # => 4
1331
+ bloodline.name # => "Brutor"
1332
+ bloodline.perception # => 9
1304
1333
  bloodline.race_id # => 2
1305
1334
  bloodline.ship_type_id # => 588
1306
- bloodline.corporation_id # => 1000049
1307
- bloodline.perception # => 9
1308
1335
  bloodline.willpower # => 7
1309
- bloodline.charisma # => 6
1310
- bloodline.memory # => 4
1311
- bloodline.intelligence # => 4
1312
1336
 
1313
1337
  # TODO: add languages
1314
1338
  ```
@@ -1332,27 +1356,27 @@ factions.factions.size # => 22
1332
1356
 
1333
1357
  faction = factions.factions.first
1334
1358
 
1335
- faction.as_json # => {:faction_id=>500002,
1336
- # :name=>"Minmatar Republic",
1359
+ faction.as_json # => {:corporation_id=>1000051,
1337
1360
  # :description=>"The Minmatar Republic was formed over a century ago when the Minmatar threw...",
1338
- # :solar_system_id=>30002544,
1339
- # :corporation_id=>1000051,
1361
+ # :faction_id=>500002,
1362
+ # :is_unique=>true,
1340
1363
  # :militia_corporation_id=>1000182,
1364
+ # :name=>"Minmatar Republic",
1341
1365
  # :size_factor=>5.0,
1366
+ # :solar_system_id=>30002544,
1342
1367
  # :station_count=>570,
1343
- # :station_system_count=>291,
1344
- # :is_unique=>true}
1368
+ # :station_system_count=>291}
1345
1369
 
1346
- faction.faction_id # => 500002
1347
- faction.name # => "Minmatar Republic"
1348
- faction.description # => "The Minmatar Republic was formed over a century ago when the Minmatar threw..."
1349
- faction.solar_system_id # => 30002544
1350
1370
  faction.corporation_id # => 1000051
1371
+ faction.description # => "The Minmatar Republic was formed over a century ago when the Minmatar threw..."
1372
+ faction.faction_id # => 500002
1373
+ faction.is_unique # => true
1351
1374
  faction.militia_corporation_id # => 1000182
1375
+ faction.name # => "Minmatar Republic"
1352
1376
  faction.size_factor # => 5.0
1377
+ faction.solar_system_id # => 30002544
1353
1378
  faction.station_count # => 570
1354
1379
  faction.station_system_count # => 291
1355
- faction.is_unique # => true
1356
1380
 
1357
1381
  # TODO: add languages
1358
1382
  ```
@@ -1384,15 +1408,15 @@ races.races.size # => 4
1384
1408
 
1385
1409
  race = races.races.first
1386
1410
 
1387
- race.as_json # => {:race_id=>2,
1388
- # :name=>"Minmatar",
1411
+ race.as_json # => {:alliance_id=>500002,
1389
1412
  # :description=>"Once a thriving tribal civilization, the Minmatar...",
1390
- # :alliance_id=>500002}
1413
+ # :name=>"Minmatar",
1414
+ # :race_id=>2}
1391
1415
 
1392
- race.race_id # => 2
1393
- race.name # => "Minmatar"
1394
- race.description # => "Once a thriving tribal civilization, the Minmatar..."
1395
1416
  race.alliance_id # => 500002
1417
+ race.description # => "Once a thriving tribal civilization, the Minmatar..."
1418
+ race.name # => "Minmatar"
1419
+ race.race_id # => 2
1396
1420
 
1397
1421
  # TODO: add languages
1398
1422
 
@@ -1437,41 +1461,41 @@ types.universe_types_ids.first # => 0
1437
1461
  #### Get type information
1438
1462
 
1439
1463
  ```ruby
1440
- options = { type_id: 192 }
1464
+ options = { id: 192 }
1441
1465
 
1442
1466
  type = EveOnline::ESI::UniverseType.new(options)
1443
1467
 
1444
1468
  type.scope # => nil
1445
1469
 
1446
- type.as_json # => {:type_id=>192,
1447
- # :name=>"Phased Plasma M",
1470
+ type.as_json # => {:capacity=>0.0,
1448
1471
  # :description=>"Medium Projectile Ammo...",
1449
- # :published=>true,
1472
+ # :graphic_id=>1297,
1450
1473
  # :group_id=>83,
1474
+ # :icon_id=>1297,
1451
1475
  # :market_group_id=>112,
1452
- # :radius=>1.0,
1453
- # :volume=>0.0125,
1476
+ # :mass=>1.0,
1477
+ # :name=>"Phased Plasma M",
1454
1478
  # :packaged_volume=>0.0125,
1455
- # :icon_id=>1297,
1456
- # :capacity=>0.0,
1457
1479
  # :portion_size=>100,
1458
- # :mass=>1.0,
1459
- # :graphic_id=>1297}
1480
+ # :published=>true,
1481
+ # :radius=>1.0,
1482
+ # :type_id=>192,
1483
+ # :volume=>0.0125}
1460
1484
 
1461
- type.type_id # => 192
1462
- type.name # => "Phased Plasma M"
1485
+ type.capacity # => 0.0
1463
1486
  type.description # => "Medium Projectile Ammo..."
1464
- type.published # => true
1487
+ type.graphic_id # => 1297
1465
1488
  type.group_id # => 83
1489
+ type.icon_id # => 1297
1466
1490
  type.market_group_id # => 112
1467
- type.radius # => 1.0
1468
- type.volume # => 0.0125
1491
+ type.mass # => 1.0
1492
+ type.name # => "Phased Plasma M"
1469
1493
  type.packaged_volume # => 0.0125
1470
- type.icon_id # => 1297
1471
- type.capacity # => 0.0
1472
1494
  type.portion_size # => 100
1473
- type.mass # => 1.0
1474
- type.graphic_id # => 1297
1495
+ type.published # => true
1496
+ type.radius # => 1.0
1497
+ type.type_id # => 192
1498
+ type.volume # => 0.0125
1475
1499
 
1476
1500
  # TODO: dogma_attributes
1477
1501
  # TODO: dogma_effects
@@ -1519,31 +1543,25 @@ character_wallet_journal.wallet_journal_entries.size # => 1
1519
1543
 
1520
1544
  wallet_journal_entry = character_wallet_journal.wallet_journal_entries.first
1521
1545
 
1522
- wallet_journal_entry.as_json # => {:date=>Tue, 06 Mar 2018 12:43:50 UTC +00:00,
1523
- # :ref_id=>15264764711,
1524
- # :ref_type=>"market_escrow",
1525
- # :first_party_id=>90729314,
1526
- # :first_party_type=>"character",
1527
- # :second_party_id=>nil,
1528
- # :second_party_type=>nil,
1529
- # :amount=>-9.5,
1530
- # :balance=>4990.5,
1531
- # :reason=>nil,
1532
- # :tax_receiver_id=>nil,
1533
- # :tax=>nil}
1534
-
1535
- wallet_journal_entry.date # => Tue, 06 Mar 2018 12:43:50 UTC +00:00
1536
- wallet_journal_entry.ref_id # => 15264764711
1537
- wallet_journal_entry.ref_type # => "market_escrow"
1538
- wallet_journal_entry.first_party_id # => 90729314
1539
- wallet_journal_entry.first_party_type # => "character"
1540
- wallet_journal_entry.second_party_id # => nil
1541
- wallet_journal_entry.second_party_type # => nil
1542
- wallet_journal_entry.amount # => -9.5
1543
- wallet_journal_entry.balance # => 4990.5
1544
- wallet_journal_entry.reason # => nil
1545
- wallet_journal_entry.tax_receiver_id # => nil
1546
- wallet_journal_entry.tax # => nil
1546
+ wallet_journal_entry.as_json
1547
+
1548
+ wallet_journal_entry.amount
1549
+ wallet_journal_entry.balance
1550
+ wallet_journal_entry.context_id
1551
+ wallet_journal_entry.context_id_type
1552
+ wallet_journal_entry.date
1553
+ wallet_journal_entry.description
1554
+ wallet_journal_entry.first_party_id
1555
+ wallet_journal_entry.id
1556
+ wallet_journal_entry.reason
1557
+ wallet_journal_entry.ref_type
1558
+ wallet_journal_entry.second_party_id
1559
+ wallet_journal_entry.tax
1560
+ wallet_journal_entry.tax_receiver_id
1561
+
1562
+ # TODO: update example
1563
+
1564
+ # TODO: add pagination
1547
1565
  ```
1548
1566
 
1549
1567
  #### Get wallet transactions
@@ -1602,6 +1620,7 @@ faraday.options.open_timeout = 60
1602
1620
  ```
1603
1621
 
1604
1622
  You can configure default timeouts with adding `read_timeout:` and `open_timeout:` to default hash with options:
1623
+
1605
1624
  ```ruby
1606
1625
  options = { read_timeout: 120, open_timeout: 120 } # 120 seconds
1607
1626
 
@@ -1609,6 +1628,7 @@ races = EveOnline::ESI::Races.new(options)
1609
1628
  ```
1610
1629
 
1611
1630
  Or, dynamically:
1631
+
1612
1632
  ```ruby
1613
1633
  races = EveOnline::ESI::Races.new
1614
1634
 
@@ -1621,6 +1641,16 @@ races.read_timeout = 120
1621
1641
  races.read_timeout # => 120
1622
1642
  ```
1623
1643
 
1644
+ ## Datasource
1645
+
1646
+ Default datasource is `tranquility`. If you want to change it, for e.g., to `singularity`, add `datasource: 'singularity'` to default hash with options:
1647
+
1648
+ ```ruby
1649
+ options = { datasource: 'singularity' }
1650
+
1651
+ races = EveOnline::ESI::Races.new(options)
1652
+ ```
1653
+
1624
1654
  ## Useful links
1625
1655
 
1626
1656
  * [BREAKING CHANGES AND YOU - HOW TO USE ALT-ROUTES TO ENHANCE YOUR SANITY](https://developers.eveonline.com/blog/article/breaking-changes-and-you)
@@ -1638,13 +1668,15 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
1638
1668
 
1639
1669
  ## Contributing
1640
1670
 
1641
- Issue reports and pull requests are welcome on GitHub at https://github.com/biow0lf/eve_online.
1671
+ Issue reports and pull requests are welcome on GitHub at <https://github.com/biow0lf/eve_online>.
1642
1672
 
1643
1673
  ## Author
1644
1674
 
1645
1675
  * Igor Zubkov (@biow0lf)
1646
1676
 
1647
- ## Contributors. Thank you everyone!
1677
+ ## Contributors
1678
+
1679
+ Thank you everyone!
1648
1680
 
1649
1681
  * Ian Flynn (@monban)
1650
1682
  * Mekaret Eriker (@Mekaret)