eve_online 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -12
- data/CHANGELOG.md +20 -0
- data/Gemfile.lock +3 -3
- data/README.md +240 -32
- data/TODO.md +4 -1
- data/lib/eve_online.rb +17 -0
- data/lib/eve_online/esi/alliance.rb +1 -1
- data/lib/eve_online/esi/alliance_corporations.rb +1 -1
- data/lib/eve_online/esi/alliance_icon.rb +1 -1
- data/lib/eve_online/esi/alliances.rb +1 -1
- data/lib/eve_online/esi/ancestries.rb +1 -1
- data/lib/eve_online/esi/base.rb +6 -0
- data/lib/eve_online/esi/bloodlines.rb +1 -1
- data/lib/eve_online/esi/character.rb +1 -1
- data/lib/eve_online/esi/character_assets.rb +8 -3
- data/lib/eve_online/esi/character_attributes.rb +1 -1
- data/lib/eve_online/esi/character_blueprints.rb +8 -3
- data/lib/eve_online/esi/character_bookmark_folders.rb +8 -3
- data/lib/eve_online/esi/character_bookmarks.rb +8 -3
- data/lib/eve_online/esi/character_calendar.rb +1 -1
- data/lib/eve_online/esi/character_clones.rb +1 -1
- data/lib/eve_online/esi/character_fatigue.rb +1 -1
- data/lib/eve_online/esi/character_implants.rb +1 -1
- data/lib/eve_online/esi/character_industry_jobs.rb +1 -1
- data/lib/eve_online/esi/character_killmails_recent.rb +39 -0
- data/lib/eve_online/esi/character_location.rb +37 -0
- data/lib/eve_online/esi/character_loyalty_points.rb +1 -1
- data/lib/eve_online/esi/character_notifications.rb +1 -1
- data/lib/eve_online/esi/character_online.rb +1 -1
- data/lib/eve_online/esi/character_orders.rb +1 -1
- data/lib/eve_online/esi/character_portrait.rb +1 -1
- data/lib/eve_online/esi/character_ship.rb +36 -0
- data/lib/eve_online/esi/character_skill_queue.rb +1 -1
- data/lib/eve_online/esi/character_skills.rb +1 -1
- data/lib/eve_online/esi/character_standings.rb +1 -1
- data/lib/eve_online/esi/character_wallet.rb +1 -1
- data/lib/eve_online/esi/character_wallet_journal.rb +8 -3
- data/lib/eve_online/esi/corporation.rb +1 -1
- data/lib/eve_online/esi/corporation_blueprints.rb +8 -3
- data/lib/eve_online/esi/corporation_industry_jobs.rb +8 -3
- data/lib/eve_online/esi/corporation_killmails_recent.rb +39 -0
- data/lib/eve_online/esi/corporation_orders.rb +8 -3
- data/lib/eve_online/esi/dogma_attribute.rb +1 -1
- data/lib/eve_online/esi/dogma_attributes.rb +1 -1
- data/lib/eve_online/esi/factions.rb +1 -1
- data/lib/eve_online/esi/market_history.rb +1 -1
- data/lib/eve_online/esi/models/alliance_icon.rb +1 -1
- data/lib/eve_online/esi/models/character_location.rb +29 -0
- data/lib/eve_online/esi/models/character_ship.rb +29 -0
- data/lib/eve_online/esi/models/constellation.rb +49 -0
- data/lib/eve_online/esi/models/killmail_short.rb +24 -0
- data/lib/eve_online/esi/models/region.rb +34 -0
- data/lib/eve_online/esi/races.rb +1 -1
- data/lib/eve_online/esi/server_status.rb +1 -1
- data/lib/eve_online/esi/universe_constellation.rb +35 -0
- data/lib/eve_online/esi/universe_constellations.rb +19 -0
- data/lib/eve_online/esi/universe_region.rb +35 -0
- data/lib/eve_online/esi/universe_regions.rb +19 -0
- data/lib/eve_online/esi/universe_systems.rb +19 -0
- data/lib/eve_online/esi/universe_type.rb +1 -1
- data/lib/eve_online/esi/universe_types.rb +14 -2
- data/lib/eve_online/esi/war_killmails.rb +37 -0
- data/lib/eve_online/esi/wars.rb +19 -0
- data/lib/eve_online/version.rb +1 -1
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cfcf5d53856441ce77e196540d444274bb85983d3e21f59fe8fe055ad1c8cf3
|
4
|
+
data.tar.gz: fc8b99941ea4281d94341dff860c86027d83cfb51411da0b22816c1c76370c02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b047f8b03a1fce01689ec02d075f09b3fd83cbbb978f22d2bac6b04f4015716dabac16342a3914476fc3952de43c361c40608ab8b16ebcaf0cb2991dcb279578
|
7
|
+
data.tar.gz: a5d31f1c67bec23d6d1411ff26d88a6eadb436768f722095cb71ade44abc9463bfab226865c6ff87b654168cc51bc61b9ed90bfcb65968007eba2b675426b775
|
data/.rubocop.yml
CHANGED
@@ -7,18 +7,6 @@ inherit_from:
|
|
7
7
|
- .rubocop-thread_safety.yml
|
8
8
|
- .rubocop_todo.yml
|
9
9
|
|
10
|
-
AllCops:
|
11
|
-
Exclude:
|
12
|
-
- 'lib/eve_online/xml/character_wallet_journal.rb'
|
13
|
-
- 'lib/eve_online/xml/character_upcoming_calendar_events.rb'
|
14
|
-
- 'lib/eve_online/xml/base.rb'
|
15
|
-
- 'lib/eve_online/wallet_journal_entry.rb'
|
16
|
-
- 'lib/eve_online/event.rb'
|
17
|
-
- 'spec/eve_online/xml/character_wallet_journal_spec.rb'
|
18
|
-
- 'spec/eve_online/xml/character_upcoming_calendar_events_spec.rb'
|
19
|
-
- 'spec/eve_online/xml/base_spec.rb'
|
20
|
-
- 'spec/eve_online/event_response_object_spec.rb'
|
21
|
-
|
22
10
|
Metrics/BlockLength:
|
23
11
|
Exclude:
|
24
12
|
- 'spec/**/*_spec.rb'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v0.18.0
|
4
|
+
|
5
|
+
* Add `EveOnline::ESI::Models::CharacterShip`
|
6
|
+
* Add `EveOnline::ESI::Models::CharacterLocation`
|
7
|
+
* Add `EveOnline::ESI::CharacterShip`
|
8
|
+
* Add `EveOnline::ESI::CharacterLocation`
|
9
|
+
* Update urls from `https://esi.tech.ccp.is/` to `https://esi.evetech.net/`
|
10
|
+
* Add pagination support
|
11
|
+
* Add `EveOnline::ESI::UniverseRegions`
|
12
|
+
* Add `EveOnline::ESI::UniverseRegion`
|
13
|
+
* Add `EveOnline::ESI::UniverseConstellations`
|
14
|
+
* Add `EveOnline::ESI::UniverseConstellation`
|
15
|
+
* Add `EveOnline::ESI::Models::Constellation`
|
16
|
+
* Add `EveOnline::ESI::UniverseSystems`
|
17
|
+
* Add `EveOnline::ESI::Wars`
|
18
|
+
* Add `EveOnline::ESI::Models::KillmailShort`
|
19
|
+
* Add `EveOnline::ESI::WarKillmails`
|
20
|
+
* Add `EveOnline::ESI::CharacterKillmailsRecent`
|
21
|
+
* Add `EveOnline::ESI::CorporationKillmailsRecent`
|
22
|
+
|
3
23
|
## v0.17.0
|
4
24
|
|
5
25
|
* Sync with new ESI API
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eve_online (0.
|
4
|
+
eve_online (0.17.0)
|
5
5
|
activesupport (>= 4.2.0)
|
6
6
|
faraday
|
7
7
|
json
|
@@ -73,7 +73,7 @@ GEM
|
|
73
73
|
diff-lcs (>= 1.2.0, < 2.0)
|
74
74
|
rspec-support (~> 3.8.0)
|
75
75
|
rspec-support (3.8.0)
|
76
|
-
rubocop (0.
|
76
|
+
rubocop (0.59.1)
|
77
77
|
jaro_winkler (~> 1.5.1)
|
78
78
|
parallel (~> 1.10)
|
79
79
|
parser (>= 2.5, != 2.5.1.1)
|
@@ -81,7 +81,7 @@ GEM
|
|
81
81
|
rainbow (>= 2.2.2, < 4.0)
|
82
82
|
ruby-progressbar (~> 1.7)
|
83
83
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
84
|
-
rubocop-rspec (1.
|
84
|
+
rubocop-rspec (1.29.1)
|
85
85
|
rubocop (>= 0.58.0)
|
86
86
|
ruby-progressbar (1.10.0)
|
87
87
|
safe_yaml (1.0.4)
|
data/README.md
CHANGED
@@ -2,9 +2,9 @@
|
|
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
|
-
[![Test Coverage](https://codeclimate.com/
|
6
|
-
[![Build Status](https://travis-ci.
|
7
|
-
[![security](https://hakiri.io/github/
|
5
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/955073c905b91d53e68c/test_coverage)](https://codeclimate.com/github/evemonk/eve_online/test_coverage)
|
6
|
+
[![Build Status](https://travis-ci.com/evemonk/eve_online.svg?branch=master)](https://travis-ci.com/evemonk/eve_online)
|
7
|
+
[![security](https://hakiri.io/github/evemonk/eve_online/master.svg)](https://hakiri.io/github/evemonk/eve_online/master)
|
8
8
|
|
9
9
|
This gem implement Ruby API for EveOnline MMORPG (ESI).
|
10
10
|
|
@@ -138,12 +138,16 @@ alliance_icon.icon_small # => "http://image.eveonline.com/Alliance/99005443_64.p
|
|
138
138
|
#### Get character assets
|
139
139
|
|
140
140
|
```ruby
|
141
|
-
options = { token: 'token123', character_id: 90729314 }
|
141
|
+
options = { token: 'token123', character_id: 90729314, page: 1 }
|
142
142
|
|
143
143
|
character_assets = EveOnline::ESI::CharacterAssets.new(options)
|
144
144
|
|
145
145
|
character_assets.scope # => "esi-assets.read_assets.v1"
|
146
146
|
|
147
|
+
character_assets.page # => 1
|
148
|
+
|
149
|
+
character_assets.total_pages # => 1
|
150
|
+
|
147
151
|
character_assets.assets.size # => 486
|
148
152
|
|
149
153
|
asset = character_assets.assets.first
|
@@ -165,8 +169,6 @@ asset.location_id # => 1027847409779
|
|
165
169
|
asset.location_type # => "other"
|
166
170
|
asset.quantity # => 1
|
167
171
|
asset.type_id # => 1010
|
168
|
-
|
169
|
-
# TODO: add pagination support
|
170
172
|
```
|
171
173
|
|
172
174
|
#### Get character asset locations
|
@@ -184,12 +186,16 @@ asset.type_id # => 1010
|
|
184
186
|
#### List bookmarks
|
185
187
|
|
186
188
|
```ruby
|
187
|
-
options = { token: 'token123', character_id: 90729314 }
|
189
|
+
options = { token: 'token123', character_id: 90729314, page: 1 }
|
188
190
|
|
189
191
|
character_bookmarks = EveOnline::ESI::CharacterBookmarks.new(options)
|
190
192
|
|
191
193
|
character_bookmarks.scope # => "esi-bookmarks.read_character_bookmarks.v1"
|
192
194
|
|
195
|
+
character_bookmarks.page # => 1
|
196
|
+
|
197
|
+
character_bookmarks.total_pages # => 1
|
198
|
+
|
193
199
|
character_bookmarks.bookmarks.size # => 20
|
194
200
|
|
195
201
|
bookmark = character_bookmarks.bookmarks.first
|
@@ -219,19 +225,21 @@ bookmark.item_type_id # => 5
|
|
219
225
|
bookmark.label # => "Stargate"
|
220
226
|
bookmark.location_id # => 30003430
|
221
227
|
bookmark.notes # => "This is a stargate"
|
222
|
-
|
223
|
-
# TODO: add pagination support
|
224
228
|
```
|
225
229
|
|
226
230
|
#### List bookmark folders
|
227
231
|
|
228
232
|
```ruby
|
229
|
-
options = { token: 'token123', character_id: 90729314 }
|
233
|
+
options = { token: 'token123', character_id: 90729314, page: 1 }
|
230
234
|
|
231
235
|
character_bookmark_folders = EveOnline::ESI::CharacterBookmarkFolders.new(options)
|
232
236
|
|
233
237
|
character_bookmark_folders.scope # => "esi-bookmarks.read_character_bookmarks.v1"
|
234
238
|
|
239
|
+
character_bookmark_folders.page # => 1
|
240
|
+
|
241
|
+
character_bookmark_folders.total_pages # => 1
|
242
|
+
|
235
243
|
character_bookmark_folders.bookmark_folders.size # => 1
|
236
244
|
|
237
245
|
bookmark_folder = character_bookmark_folders.bookmark_folders.first
|
@@ -241,8 +249,6 @@ bookmark_folder.as_json # => {:folder_id=>5,
|
|
241
249
|
|
242
250
|
bookmark_folder.folder_id # => 5
|
243
251
|
bookmark_folder.name # => "Icecream"
|
244
|
-
|
245
|
-
# TODO: add pagination support
|
246
252
|
```
|
247
253
|
|
248
254
|
#### List corporation bookmarks
|
@@ -326,12 +332,16 @@ character.security_status # => 1.8694881661345457
|
|
326
332
|
#### Get blueprints
|
327
333
|
|
328
334
|
```ruby
|
329
|
-
options = { token: 'token123', character_id: 90729314 }
|
335
|
+
options = { token: 'token123', character_id: 90729314, page: 1 }
|
330
336
|
|
331
337
|
character_blueprints = EveOnline::ESI::CharacterBlueprints.new(options)
|
332
338
|
|
333
339
|
character_blueprints.scope # => "esi-characters.read_blueprints.v1"
|
334
340
|
|
341
|
+
character_blueprints.page # => 1
|
342
|
+
|
343
|
+
character_blueprints.total_pages # => 1
|
344
|
+
|
335
345
|
character_blueprints.blueprints.size # => 4
|
336
346
|
|
337
347
|
blueprint = character_blueprints.blueprints.first
|
@@ -353,8 +363,6 @@ blueprint.quantity # => -2
|
|
353
363
|
blueprint.runs # => 300
|
354
364
|
blueprint.time_efficiency # => 0
|
355
365
|
blueprint.type_id # => 1010
|
356
|
-
|
357
|
-
# TODO: add pagination support
|
358
366
|
```
|
359
367
|
|
360
368
|
#### Get corporation history
|
@@ -599,12 +607,16 @@ corporation.corporation_url # => "http://"
|
|
599
607
|
#### Get corporation blueprints
|
600
608
|
|
601
609
|
```ruby
|
602
|
-
options = options = { token: 'token123', corporation_id: 98260237 }
|
610
|
+
options = options = { token: 'token123', corporation_id: 98260237, page: 1 }
|
603
611
|
|
604
612
|
corporation_blueprints = EveOnline::ESI::CorporationBlueprints.new(options)
|
605
613
|
|
606
614
|
corporation_blueprints.scope # => "esi-corporations.read_blueprints.v1"
|
607
615
|
|
616
|
+
corporation_blueprints.page # => 1
|
617
|
+
|
618
|
+
corporation_blueprints.total_pages # => 1
|
619
|
+
|
608
620
|
corporation_blueprints.blueprints.size # => 387
|
609
621
|
|
610
622
|
blueprint = corporation_blueprints.blueprints.first
|
@@ -627,7 +639,7 @@ blueprint.runs # => 300
|
|
627
639
|
blueprint.time_efficiency # => 20
|
628
640
|
blueprint.type_id # => 31803
|
629
641
|
|
630
|
-
# TODO: add
|
642
|
+
# TODO: add roles
|
631
643
|
```
|
632
644
|
|
633
645
|
#### Get all corporation ALSC logs
|
@@ -859,6 +871,10 @@ corporation_jobs = EveOnline::ESI::CorporationIndustryJobs.new(options)
|
|
859
871
|
|
860
872
|
corporation_jobs.scope # => "esi-industry.read_corporation_jobs.v1"
|
861
873
|
|
874
|
+
corporation_jobs.page # => 1
|
875
|
+
|
876
|
+
corporation_jobs.total_pages # => 1
|
877
|
+
|
862
878
|
corporation_jobs.jobs.size # => 23
|
863
879
|
|
864
880
|
job = corporation_jobs.jobs.first
|
@@ -908,8 +924,6 @@ job.runs # => 1
|
|
908
924
|
job.start_date # => Sat, 18 Nov 2017 11:20:14 UTC +00:00
|
909
925
|
job.status # => "active"
|
910
926
|
job.successful_runs # => nil
|
911
|
-
|
912
|
-
# TODO: add pagination support
|
913
927
|
```
|
914
928
|
|
915
929
|
#### List industry facilities
|
@@ -922,9 +936,53 @@ job.successful_runs # => nil
|
|
922
936
|
|
923
937
|
### Killmails
|
924
938
|
|
925
|
-
#### Get character kills and losses
|
939
|
+
#### Get a character's recent kills and losses
|
940
|
+
|
941
|
+
```ruby
|
942
|
+
options = { token: 'token123', character_id: 90729314 }
|
943
|
+
|
944
|
+
character_killmails = EveOnline::ESI::CharacterKillmailsRecent.new(options)
|
945
|
+
|
946
|
+
character_killmails.scope # => "esi-killmails.read_killmails.v1"
|
947
|
+
|
948
|
+
character_killmails.page # => 1
|
949
|
+
|
950
|
+
character_killmails.total_pages # => 1
|
926
951
|
|
927
|
-
|
952
|
+
character_killmails.killmails.size # => 1
|
953
|
+
|
954
|
+
killmail = character_killmails.killmails.first
|
955
|
+
|
956
|
+
killmail.as_json # => {:killmail_hash=>"07f7ef1d7f6090e78d8e85b4a98e680f67b5e9d5",
|
957
|
+
# :killmail_id=>72410059}
|
958
|
+
|
959
|
+
killmail.killmail_hash # => "07f7ef1d7f6090e78d8e85b4a98e680f67b5e9d5"
|
960
|
+
killmail.killmail_id # => 72410059
|
961
|
+
```
|
962
|
+
|
963
|
+
#### Get a corporation's recent kills and losses
|
964
|
+
|
965
|
+
```ruby
|
966
|
+
options = { token: 'token123', corporation_id: 98146630 }
|
967
|
+
|
968
|
+
corporation_killmails = EveOnline::ESI::CorporationKillmailsRecent.new(options)
|
969
|
+
|
970
|
+
corporation_killmails.scope # => "esi-killmails.read_corporation_killmails.v1"
|
971
|
+
|
972
|
+
corporation_killmails.page # => 1
|
973
|
+
|
974
|
+
corporation_killmails.total_pages # => 1
|
975
|
+
|
976
|
+
corporation_killmails.killmails.size # => 1
|
977
|
+
|
978
|
+
killmail = corporation_killmails.killmails.first
|
979
|
+
|
980
|
+
killmail.as_json # => {:killmail_hash=>"07f7ef1d7f6090e78d8e85b4a98e680f67b5e9d5",
|
981
|
+
# :killmail_id=>72410059}
|
982
|
+
|
983
|
+
killmail.killmail_hash # => "07f7ef1d7f6090e78d8e85b4a98e680f67b5e9d5"
|
984
|
+
killmail.killmail_id # => 72410059
|
985
|
+
```
|
928
986
|
|
929
987
|
#### Get a single killmail
|
930
988
|
|
@@ -932,6 +990,22 @@ job.successful_runs # => nil
|
|
932
990
|
|
933
991
|
#### Get character location
|
934
992
|
|
993
|
+
```ruby
|
994
|
+
options = { token: 'token123', character_id: 90729314 }
|
995
|
+
|
996
|
+
character_location = EveOnline::ESI::CharacterLocation.new(options)
|
997
|
+
|
998
|
+
character_location.scope # => "esi-location.read_location.v1"
|
999
|
+
|
1000
|
+
character_location.as_json # => {:solar_system_id=>30004971,
|
1001
|
+
# :station_id=>60014689,
|
1002
|
+
# :structure_id=>nil}
|
1003
|
+
|
1004
|
+
character_location.solar_system_id # => 30004971
|
1005
|
+
character_location.station_id # => 60014689
|
1006
|
+
character_location.structure_id # => nil
|
1007
|
+
```
|
1008
|
+
|
935
1009
|
#### Get character online
|
936
1010
|
|
937
1011
|
```ruby
|
@@ -954,6 +1028,23 @@ character_online.online # => false
|
|
954
1028
|
|
955
1029
|
#### Get current ship
|
956
1030
|
|
1031
|
+
```ruby
|
1032
|
+
|
1033
|
+
options = { token: 'token123', character_id: 90729314 }
|
1034
|
+
|
1035
|
+
character_ship = EveOnline::ESI::CharacterShip.new(options)
|
1036
|
+
|
1037
|
+
character_ship.scope # => "esi-location.read_ship_type.v1"
|
1038
|
+
|
1039
|
+
character_ship.as_json # => {:ship_item_id=>1002312158069,
|
1040
|
+
# :ship_name=>"Green Black's Velator",
|
1041
|
+
# :ship_type_id=>606}
|
1042
|
+
|
1043
|
+
character_ship.ship_item_id # => 1002312158069
|
1044
|
+
character_ship.ship_name # => "Green Black's Velator"
|
1045
|
+
character_ship.ship_type_id # => 606
|
1046
|
+
```
|
1047
|
+
|
957
1048
|
### Loyalty
|
958
1049
|
|
959
1050
|
#### Get loyalty points
|
@@ -1037,12 +1128,16 @@ order.volume_total
|
|
1037
1128
|
#### List open orders from a corporation
|
1038
1129
|
|
1039
1130
|
```ruby
|
1040
|
-
options = { token: 'token123', corporation_id: 1000168 }
|
1131
|
+
options = { token: 'token123', corporation_id: 1000168, page: 1 }
|
1041
1132
|
|
1042
1133
|
corporation_orders = EveOnline::ESI::CorporationOrders.new(options)
|
1043
1134
|
|
1044
1135
|
corporation_orders.scope
|
1045
1136
|
|
1137
|
+
corporation_orders.page # => 1
|
1138
|
+
|
1139
|
+
corporation_orders.total_pages # => 1
|
1140
|
+
|
1046
1141
|
corporation_orders.orders.size
|
1047
1142
|
|
1048
1143
|
order = corporation_orders.orders.first
|
@@ -1067,8 +1162,6 @@ order.wallet_division
|
|
1067
1162
|
|
1068
1163
|
# TODO: update example
|
1069
1164
|
|
1070
|
-
# TODO: add pagination support
|
1071
|
-
|
1072
1165
|
# TODO: update
|
1073
1166
|
```
|
1074
1167
|
|
@@ -1343,8 +1436,44 @@ bloodline.willpower # => 7
|
|
1343
1436
|
|
1344
1437
|
#### Get constellations
|
1345
1438
|
|
1439
|
+
```ruby
|
1440
|
+
constellations = EveOnline::ESI::UniverseConstellations.new
|
1441
|
+
|
1442
|
+
constellations.scope # => nil
|
1443
|
+
|
1444
|
+
constellations.constellations_ids.size # => 1146
|
1445
|
+
|
1446
|
+
constellations.constellations_ids.first # => 20000001
|
1447
|
+
```
|
1448
|
+
|
1346
1449
|
#### Get constellation information
|
1347
1450
|
|
1451
|
+
```ruby
|
1452
|
+
options = { id: 20000001 }
|
1453
|
+
|
1454
|
+
constellation = EveOnline::ESI::UniverseConstellation.new(options)
|
1455
|
+
|
1456
|
+
constellation.scope # => nil
|
1457
|
+
|
1458
|
+
constellation.as_json # => {:constellation_id=>20000001,
|
1459
|
+
# :name=>"San Matar",
|
1460
|
+
# :position_x=>-9.404655970099134e+16,
|
1461
|
+
# :position_y=>4.952015315379885e+16,
|
1462
|
+
# :position_z=>-4.273873181840197e+16,
|
1463
|
+
# :region_id=>10000001,
|
1464
|
+
# :systems=>[30000001, 30000002, 30000003, 30000004, 30000005, 30000006, 30000007, 30000008]}
|
1465
|
+
|
1466
|
+
constellation.constellation_id # => 20000001
|
1467
|
+
constellation.name # => "San Matar"
|
1468
|
+
constellation.position_x # => -9.404655970099134e+16
|
1469
|
+
constellation.position_y # => 4.952015315379885e+16
|
1470
|
+
constellation.position_z # => -4.273873181840197e+16
|
1471
|
+
constellation.region_id # => 10000001
|
1472
|
+
constellation.systems # => [30000001, 30000002, 30000003, 30000004, 30000005, 30000006, 30000007, 30000008]
|
1473
|
+
|
1474
|
+
# TODO: translations
|
1475
|
+
```
|
1476
|
+
|
1348
1477
|
#### Get factions
|
1349
1478
|
|
1350
1479
|
```ruby
|
@@ -1419,13 +1548,42 @@ race.name # => "Minmatar"
|
|
1419
1548
|
race.race_id # => 2
|
1420
1549
|
|
1421
1550
|
# TODO: add languages
|
1422
|
-
|
1423
1551
|
```
|
1424
1552
|
|
1425
1553
|
#### Get regions
|
1426
1554
|
|
1555
|
+
```ruby
|
1556
|
+
regions = EveOnline::ESI::UniverseRegions.new
|
1557
|
+
|
1558
|
+
regions.scope # => nil
|
1559
|
+
|
1560
|
+
regions.universe_regions_ids.size # => 106
|
1561
|
+
|
1562
|
+
regions.universe_regions_ids.first # => 10000001
|
1563
|
+
```
|
1564
|
+
|
1427
1565
|
#### Get region information
|
1428
1566
|
|
1567
|
+
```ruby
|
1568
|
+
options = { id: 10000001 }
|
1569
|
+
|
1570
|
+
region = EveOnline::ESI::UniverseRegion.new(options)
|
1571
|
+
|
1572
|
+
region.scope # => nil
|
1573
|
+
|
1574
|
+
region.as_json # => {:constellations=>[20000001,20000002,20000003,20000016],
|
1575
|
+
# :description=>"The Derelik region...",
|
1576
|
+
# :name=>"Derelik",
|
1577
|
+
# :region_id=>10000001}
|
1578
|
+
|
1579
|
+
region.constellations # => [20000001,20000002,20000003,20000016]
|
1580
|
+
region.description # => "The Derelik region..."
|
1581
|
+
region.name # => "Derelik"
|
1582
|
+
region.region_id # => 10000001
|
1583
|
+
|
1584
|
+
# TODO: translations
|
1585
|
+
```
|
1586
|
+
|
1429
1587
|
#### Get stargate information
|
1430
1588
|
|
1431
1589
|
#### Get star information
|
@@ -1442,20 +1600,34 @@ race.race_id # => 2
|
|
1442
1600
|
|
1443
1601
|
#### Get solar systems
|
1444
1602
|
|
1603
|
+
```ruby
|
1604
|
+
systems = EveOnline::ESI::UniverseSystems.new
|
1605
|
+
|
1606
|
+
systems.scope # => nil
|
1607
|
+
|
1608
|
+
systems.universe_systems_ids.size # => 8285
|
1609
|
+
|
1610
|
+
systems.universe_systems_ids.first # => 30000001
|
1611
|
+
```
|
1612
|
+
|
1445
1613
|
#### Get solar system information
|
1446
1614
|
|
1447
1615
|
#### Get types
|
1448
1616
|
|
1449
1617
|
```ruby
|
1450
|
-
|
1618
|
+
options = { page: 1 }
|
1619
|
+
|
1620
|
+
types = EveOnline::ESI::UniverseTypes.new(options)
|
1451
1621
|
|
1452
1622
|
types.scope # => nil
|
1453
1623
|
|
1624
|
+
types.page # => 1
|
1625
|
+
|
1626
|
+
types.total_pages # => 35
|
1627
|
+
|
1454
1628
|
types.universe_types_ids.size # => 1000
|
1455
1629
|
|
1456
1630
|
types.universe_types_ids.first # => 0
|
1457
|
-
|
1458
|
-
# TODO: add pagination
|
1459
1631
|
```
|
1460
1632
|
|
1461
1633
|
#### Get type information
|
@@ -1533,12 +1705,16 @@ character_wallet.wallet # => 409488252.49
|
|
1533
1705
|
#### Get character wallet journal
|
1534
1706
|
|
1535
1707
|
```ruby
|
1536
|
-
options = { token: 'token123', character_id: 90729314 }
|
1708
|
+
options = { token: 'token123', character_id: 90729314, page: 1 }
|
1537
1709
|
|
1538
1710
|
character_wallet_journal = EveOnline::ESI::CharacterWalletJournal.new(options)
|
1539
1711
|
|
1540
1712
|
character_wallet_journal.scope # => "esi-wallet.read_character_wallet.v1"
|
1541
1713
|
|
1714
|
+
character_wallet_journal.page # => 1
|
1715
|
+
|
1716
|
+
character_wallet_journal.total_pages # => 1
|
1717
|
+
|
1542
1718
|
character_wallet_journal.wallet_journal_entries.size # => 1
|
1543
1719
|
|
1544
1720
|
wallet_journal_entry = character_wallet_journal.wallet_journal_entries.first
|
@@ -1560,8 +1736,6 @@ wallet_journal_entry.tax
|
|
1560
1736
|
wallet_journal_entry.tax_receiver_id
|
1561
1737
|
|
1562
1738
|
# TODO: update example
|
1563
|
-
|
1564
|
-
# TODO: add pagination
|
1565
1739
|
```
|
1566
1740
|
|
1567
1741
|
#### Get wallet transactions
|
@@ -1576,10 +1750,44 @@ wallet_journal_entry.tax_receiver_id
|
|
1576
1750
|
|
1577
1751
|
#### List wars
|
1578
1752
|
|
1753
|
+
```ruby
|
1754
|
+
wars = EveOnline::ESI::Wars.new
|
1755
|
+
|
1756
|
+
wars.scope # => nil
|
1757
|
+
|
1758
|
+
wars.wars_ids.size # => 2000
|
1759
|
+
|
1760
|
+
wars.wars_ids.first # => 615639
|
1761
|
+
|
1762
|
+
# TODO: max_war_id
|
1763
|
+
```
|
1764
|
+
|
1579
1765
|
#### Get war information
|
1580
1766
|
|
1581
1767
|
#### List kills for a war
|
1582
1768
|
|
1769
|
+
```ruby
|
1770
|
+
options = { war_id: 615578 }
|
1771
|
+
|
1772
|
+
war_killmails = EveOnline::ESI::WarKillmails.new(options)
|
1773
|
+
|
1774
|
+
war_killmails.scope # => nil
|
1775
|
+
|
1776
|
+
war_killmails.page # => 1
|
1777
|
+
|
1778
|
+
war_killmails.total_pages # => 1
|
1779
|
+
|
1780
|
+
war_killmails.killmails.size # => 1
|
1781
|
+
|
1782
|
+
killmail = war_killmails.killmails.first
|
1783
|
+
|
1784
|
+
killmail.as_json # => {:killmail_hash=>"07f7ef1d7f6090e78d8e85b4a98e680f67b5e9d5",
|
1785
|
+
# :killmail_id=>72410059}
|
1786
|
+
|
1787
|
+
killmail.killmail_hash # => "07f7ef1d7f6090e78d8e85b4a98e680f67b5e9d5"
|
1788
|
+
killmail.killmail_id # => 72410059
|
1789
|
+
```
|
1790
|
+
|
1583
1791
|
## Exceptions
|
1584
1792
|
|
1585
1793
|
If you want to catch all exceptions `rescue` `EveOnline::Exceptions::Base`. E.g.:
|
@@ -1658,7 +1866,7 @@ races = EveOnline::ESI::Races.new(options)
|
|
1658
1866
|
* [THE END OF PUBLIC CREST AS WE KNOW IT](https://developers.eveonline.com/blog/article/the-end-of-public-crest-as-we-know-it)
|
1659
1867
|
* [CCP, zKillboard (Eve-Kill), and your API](https://docs.google.com/document/d/16YfJwjhuH5A3cS4NTMDFDkprnOVKsvgtuRIKk8xjTM8/edit)
|
1660
1868
|
* [JUMP CLONES, IMPLANTS, SKILLS, AND MORE](https://developers.eveonline.com/blog/article/jump-clones-implants-skills-and-more)
|
1661
|
-
* [ESI Swagger](https://esi.
|
1869
|
+
* [ESI Swagger](https://esi.evetech.net/ui/)
|
1662
1870
|
|
1663
1871
|
## Development
|
1664
1872
|
|