eve_online 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +5 -5
- data/CHANGELOG.md +34 -0
- data/Gemfile.lock +6 -6
- data/README.md +410 -14
- data/lib/eve_online.rb +31 -0
- data/lib/eve_online/esi/alliance.rb +1 -2
- data/lib/eve_online/esi/alliance_icon.rb +1 -2
- data/lib/eve_online/esi/models/asteroid_belt.rb +28 -0
- data/lib/eve_online/esi/models/category.rb +33 -0
- data/lib/eve_online/esi/models/graphic.rb +54 -0
- data/lib/eve_online/esi/models/group.rb +38 -0
- data/lib/eve_online/esi/models/moon.rb +33 -0
- data/lib/eve_online/esi/models/planet.rb +38 -0
- data/lib/eve_online/esi/models/planet_short.rb +27 -0
- data/lib/eve_online/esi/models/planets.rb +19 -0
- data/lib/eve_online/esi/models/star.rb +54 -0
- data/lib/eve_online/esi/models/stargate.rb +42 -0
- data/lib/eve_online/esi/models/stargate_destination.rb +24 -0
- data/lib/eve_online/esi/models/station.rb +73 -0
- data/lib/eve_online/esi/models/system.rb +60 -0
- data/lib/eve_online/esi/models/system_jump.rb +24 -0
- data/lib/eve_online/esi/models/system_kill.rb +34 -0
- data/lib/eve_online/esi/universe_asteroid_belt.rb +33 -0
- data/lib/eve_online/esi/universe_categories.rb +19 -0
- data/lib/eve_online/esi/universe_category.rb +34 -0
- data/lib/eve_online/esi/universe_graphic.rb +35 -0
- data/lib/eve_online/esi/universe_graphics.rb +19 -0
- data/lib/eve_online/esi/universe_group.rb +34 -0
- data/lib/eve_online/esi/universe_groups.rb +27 -0
- data/lib/eve_online/esi/universe_moon.rb +33 -0
- data/lib/eve_online/esi/universe_planet.rb +34 -0
- data/lib/eve_online/esi/universe_star.rb +35 -0
- data/lib/eve_online/esi/universe_stargate.rb +35 -0
- data/lib/eve_online/esi/universe_station.rb +37 -0
- data/lib/eve_online/esi/universe_structures.rb +19 -0
- data/lib/eve_online/esi/universe_system.rb +35 -0
- data/lib/eve_online/esi/universe_system_jumps.rb +24 -0
- data/lib/eve_online/esi/universe_system_kills.rb +24 -0
- data/lib/eve_online/version.rb +1 -1
- metadata +33 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a57ebaa823e3e07e284645e364bd41cdfa2860e8113b896ac45e1680286d01b
|
4
|
+
data.tar.gz: '0392e3691348d4a5aac937b0444ef1fede92f7354706c6fe9d957dd647c0d43e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72e2835896b0a996be290c20fcce1fd3ad74be3c745b42c0a16a5eb47a158879e7013d97676738bae43b8f364e9fe5d981a6ec49006639a27ac879763958bc08
|
7
|
+
data.tar.gz: f9197419d8583c3149e572f9bff2cd3a1c7b12297e0329e130c852d69843f61443d5a3562fc3e54df71223671f3ca6e3910890b99b7ea29316b25e9fc86aa966
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.3
|
data/.travis.yml
CHANGED
@@ -2,9 +2,9 @@ language: ruby
|
|
2
2
|
sudo: false
|
3
3
|
cache: bundler
|
4
4
|
rvm:
|
5
|
-
- 2.3.
|
6
|
-
- 2.4.
|
7
|
-
- 2.5.
|
5
|
+
- 2.3.8
|
6
|
+
- 2.4.5
|
7
|
+
- 2.5.3
|
8
8
|
- ruby-head
|
9
9
|
|
10
10
|
gemfile:
|
@@ -22,9 +22,9 @@ matrix:
|
|
22
22
|
exclude:
|
23
23
|
- rvm: ruby-head
|
24
24
|
gemfile: gemfiles/activesupport_42.gemfile
|
25
|
-
- rvm: 2.5.
|
25
|
+
- rvm: 2.5.3
|
26
26
|
gemfile: gemfiles/activesupport_42.gemfile
|
27
|
-
- rvm: 2.3.
|
27
|
+
- rvm: 2.3.8
|
28
28
|
gemfile: gemfiles/activesupport_edge.gemfile
|
29
29
|
include:
|
30
30
|
- rvm: jruby-9.2.0.0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,39 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v0.20.0
|
4
|
+
|
5
|
+
* Add `EveOnline::ESI::UniverseCategories`
|
6
|
+
* Add `EveOnline::ESI::UniverseCategory`
|
7
|
+
* Add `EveOnline::ESI::Models::Category`
|
8
|
+
* Add `EveOnline::ESI::UniverseGraphics`
|
9
|
+
* Add `EveOnline::ESI::UniverseGroups`
|
10
|
+
* Add `EveOnline::ESI::Models::Group`
|
11
|
+
* Add `EveOnline::ESI::UniverseGroup`
|
12
|
+
* Add `EveOnline::ESI::Models::Graphic`
|
13
|
+
* Add `EveOnline::ESI::UniverseGraphic`
|
14
|
+
* Add `EveOnline::ESI::UniverseSystem`
|
15
|
+
* Add `EveOnline::ESI::Models::System`
|
16
|
+
* Add `EveOnline::ESI::Models::PlanetShort`
|
17
|
+
* Add `EveOnline::ESI::Models::Planets`
|
18
|
+
* Add `EveOnline::ESI::Models::Planet`
|
19
|
+
* Add `EveOnline::ESI::UniversePlanet`
|
20
|
+
* Add `EveOnline::ESI::Models::AsteroidBelt`
|
21
|
+
* Add `EveOnline::ESI::UniverseAsteroidBelt`
|
22
|
+
* Add `EveOnline::ESI::UniverseMoon`
|
23
|
+
* Add `EveOnline::ESI::Models::Moon`
|
24
|
+
* Add `EveOnline::ESI::Models::SystemJump`
|
25
|
+
* Add `EveOnline::ESI::UniverseSystemJumps`
|
26
|
+
* Add `EveOnline::ESI::Models::SystemKill`
|
27
|
+
* Add `EveOnline::ESI::UniverseSystemKills`
|
28
|
+
* Add `EveOnline::ESI::UniverseStructures`
|
29
|
+
* Add `EveOnline::ESI::Models::StargateDestination`
|
30
|
+
* Add `EveOnline::ESI::Models::Stargate`
|
31
|
+
* Add `EveOnline::ESI::UniverseStargate`
|
32
|
+
* Add `EveOnline::ESI::Models::Star`
|
33
|
+
* Add `EveOnline::ESI::UniverseStar`
|
34
|
+
* Add `EveOnline::ESI::Models::Station`
|
35
|
+
* Add `EveOnline::ESI::UniverseStation`
|
36
|
+
|
3
37
|
## v0.19.0
|
4
38
|
|
5
39
|
* Replace `faraday` gem with ruby `net/http`
|
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.20.0)
|
5
5
|
activesupport (>= 4.2.0)
|
6
6
|
json
|
7
7
|
memoist
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
diff-lcs (1.3)
|
26
26
|
docile (1.3.1)
|
27
27
|
hashdiff (0.3.7)
|
28
|
-
i18n (1.1.
|
28
|
+
i18n (1.1.1)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
30
|
jaro_winkler (1.5.1)
|
31
31
|
json (2.1.0)
|
@@ -41,7 +41,7 @@ GEM
|
|
41
41
|
mixlib-cli (1.7.0)
|
42
42
|
mixlib-config (2.2.13)
|
43
43
|
tomlrb
|
44
|
-
nokogiri (1.8.
|
44
|
+
nokogiri (1.8.5)
|
45
45
|
mini_portile2 (~> 2.3.0)
|
46
46
|
parallel (1.12.1)
|
47
47
|
parser (2.5.1.2)
|
@@ -59,7 +59,7 @@ GEM
|
|
59
59
|
rspec-mocks (~> 3.8.0)
|
60
60
|
rspec-core (3.8.0)
|
61
61
|
rspec-support (~> 3.8.0)
|
62
|
-
rspec-expectations (3.8.
|
62
|
+
rspec-expectations (3.8.2)
|
63
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
64
64
|
rspec-support (~> 3.8.0)
|
65
65
|
rspec-its (1.2.0)
|
@@ -77,7 +77,7 @@ GEM
|
|
77
77
|
rainbow (>= 2.2.2, < 4.0)
|
78
78
|
ruby-progressbar (~> 1.7)
|
79
79
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
80
|
-
rubocop-rspec (1.
|
80
|
+
rubocop-rspec (1.30.0)
|
81
81
|
rubocop (>= 0.58.0)
|
82
82
|
ruby-progressbar (1.10.0)
|
83
83
|
safe_yaml (1.0.4)
|
@@ -117,4 +117,4 @@ DEPENDENCIES
|
|
117
117
|
webmock
|
118
118
|
|
119
119
|
BUNDLED WITH
|
120
|
-
1.16.
|
120
|
+
1.16.6
|
data/README.md
CHANGED
@@ -921,7 +921,7 @@ options = { token: 'token123', character_id: 90729314 }
|
|
921
921
|
|
922
922
|
character_jobs = EveOnline::ESI::CharacterIndustryJobs.new(options)
|
923
923
|
|
924
|
-
character_jobs.scope
|
924
|
+
character_jobs.scope # => "esi-industry.read_character_jobs.v1"
|
925
925
|
|
926
926
|
character_jobs.jobs.size # => 3
|
927
927
|
|
@@ -1225,19 +1225,19 @@ order = character_orders.orders.first
|
|
1225
1225
|
|
1226
1226
|
order.as_json
|
1227
1227
|
|
1228
|
-
order.duration
|
1229
|
-
order.escrow
|
1230
|
-
order.is_buy_order
|
1231
|
-
order.is_corporation
|
1232
|
-
order.issued
|
1233
|
-
order.location_id
|
1234
|
-
order.min_volume
|
1235
|
-
order.order_id
|
1236
|
-
order.price
|
1237
|
-
order.range
|
1238
|
-
order.region_id
|
1239
|
-
order.type_id
|
1240
|
-
order.volume_remain
|
1228
|
+
order.duration
|
1229
|
+
order.escrow
|
1230
|
+
order.is_buy_order
|
1231
|
+
order.is_corporation
|
1232
|
+
order.issued
|
1233
|
+
order.location_id
|
1234
|
+
order.min_volume
|
1235
|
+
order.order_id
|
1236
|
+
order.price
|
1237
|
+
order.range
|
1238
|
+
order.region_id
|
1239
|
+
order.type_id
|
1240
|
+
order.volume_remain
|
1241
1241
|
order.volume_total
|
1242
1242
|
|
1243
1243
|
# TODO: update example
|
@@ -1512,6 +1512,28 @@ ancestry.short_description # => "Torn from the cold and brought to the warmth of
|
|
1512
1512
|
|
1513
1513
|
#### Get asteroid belt information
|
1514
1514
|
|
1515
|
+
```ruby
|
1516
|
+
options = { id: 40000003 }
|
1517
|
+
|
1518
|
+
asteroid_belt = EveOnline::ESI::UniverseAsteroidBelt.new(options)
|
1519
|
+
|
1520
|
+
asteroid_belt.scope # => nil
|
1521
|
+
|
1522
|
+
asteroid_belt.as_json # => {:name=>"Tanoo I - Asteroid Belt 1",
|
1523
|
+
# :system_id=>30000001}
|
1524
|
+
|
1525
|
+
asteroid_belt.name # => "Tanoo I - Asteroid Belt 1"
|
1526
|
+
asteroid_belt.system_id # => 30000001
|
1527
|
+
|
1528
|
+
asteroid_belt.position.as_json # => {:x=>161967513600.0,
|
1529
|
+
# :y=>21288837120.0,
|
1530
|
+
# :z=>-73505464320.0}
|
1531
|
+
|
1532
|
+
asteroid_belt.position.x # => 161967513600.0
|
1533
|
+
asteroid_belt.position.y # => 21288837120.0
|
1534
|
+
asteroid_belt.position.z # => -73505464320.0
|
1535
|
+
```
|
1536
|
+
|
1515
1537
|
#### Get bloodlines
|
1516
1538
|
|
1517
1539
|
```ruby
|
@@ -1552,8 +1574,37 @@ bloodline.willpower # => 7
|
|
1552
1574
|
|
1553
1575
|
#### Get item categories
|
1554
1576
|
|
1577
|
+
```ruby
|
1578
|
+
categories = EveOnline::ESI::UniverseCategories.new
|
1579
|
+
|
1580
|
+
categories.scope # => nil
|
1581
|
+
|
1582
|
+
categories.category_ids.size # => 43
|
1583
|
+
|
1584
|
+
categories.category_ids.first # => 0
|
1585
|
+
```
|
1586
|
+
|
1555
1587
|
#### Get item category information
|
1556
1588
|
|
1589
|
+
```ruby
|
1590
|
+
options = { id: 6, language: 'en-us' }
|
1591
|
+
|
1592
|
+
category = EveOnline::ESI::UniverseCategory.new(options)
|
1593
|
+
|
1594
|
+
category.scope # => nil
|
1595
|
+
|
1596
|
+
category.as_json # => {:category_id=>6,
|
1597
|
+
# :name=>"Ship",
|
1598
|
+
# :published=>true}
|
1599
|
+
|
1600
|
+
category.category_id # => 6
|
1601
|
+
category.name # => "Ship"
|
1602
|
+
category.published # => true
|
1603
|
+
|
1604
|
+
category.group_ids.size # => 46
|
1605
|
+
category.group_ids.first # => 25
|
1606
|
+
```
|
1607
|
+
|
1557
1608
|
#### Get constellations
|
1558
1609
|
|
1559
1610
|
```ruby
|
@@ -1632,20 +1683,141 @@ faction.station_system_count # => 291
|
|
1632
1683
|
|
1633
1684
|
#### Get graphics
|
1634
1685
|
|
1686
|
+
```ruby
|
1687
|
+
graphics = EveOnline::ESI::UniverseGraphics.new
|
1688
|
+
|
1689
|
+
graphics.scope # => nil
|
1690
|
+
|
1691
|
+
graphics.graphic_ids.size # => 3624
|
1692
|
+
|
1693
|
+
graphics.graphic_ids.first # => 20481
|
1694
|
+
```
|
1695
|
+
|
1635
1696
|
#### Get graphic information
|
1636
1697
|
|
1698
|
+
```ruby
|
1699
|
+
options = { id: 20481 }
|
1700
|
+
|
1701
|
+
graphic = EveOnline::ESI::UniverseGraphic.new(options)
|
1702
|
+
|
1703
|
+
graphic.scope # => nil
|
1704
|
+
|
1705
|
+
graphic.as_json # => {:collision_file=>nil,
|
1706
|
+
# :graphic_file=>nil,
|
1707
|
+
# :graphic_id=>20481,
|
1708
|
+
# :icon_folder=>nil,
|
1709
|
+
# :sof_dna=>"ai1_t1:tash-murkon:amarr",
|
1710
|
+
# :sof_fation_name=>"tash-murkon",
|
1711
|
+
# :sof_hull_name=>"ai1_t1",
|
1712
|
+
# :sof_race_name=>"amarr"}
|
1713
|
+
|
1714
|
+
graphic.collision_file # => nil
|
1715
|
+
graphic.graphic_file # => nil
|
1716
|
+
graphic.graphic_id # => 20481
|
1717
|
+
graphic.icon_folder # => nil
|
1718
|
+
graphic.sof_dna # => "ai1_t1:tash-murkon:amarr"
|
1719
|
+
graphic.sof_fation_name # => "tash-murkon"
|
1720
|
+
graphic.sof_hull_name # => "ai1_t1"
|
1721
|
+
graphic.sof_race_name # => "amarr"
|
1722
|
+
```
|
1723
|
+
|
1637
1724
|
#### Get item groups
|
1638
1725
|
|
1726
|
+
```ruby
|
1727
|
+
options = { page: 1 }
|
1728
|
+
|
1729
|
+
groups = EveOnline::ESI::UniverseGroups.new(options)
|
1730
|
+
|
1731
|
+
groups.scope # => nil
|
1732
|
+
|
1733
|
+
groups.page # => 1
|
1734
|
+
|
1735
|
+
groups.total_pages # => 2
|
1736
|
+
|
1737
|
+
groups.group_ids.size # => 1000
|
1738
|
+
|
1739
|
+
groups.group_ids.first # => 0
|
1740
|
+
```
|
1741
|
+
|
1639
1742
|
#### Get item group information
|
1640
1743
|
|
1744
|
+
```ruby
|
1745
|
+
options = { id: 450, language: 'en-us' }
|
1746
|
+
|
1747
|
+
group = EveOnline::ESI::UniverseGroup.new(options)
|
1748
|
+
|
1749
|
+
group.scope # => nil
|
1750
|
+
|
1751
|
+
group.as_json # => {:category_id=>25,
|
1752
|
+
# :group_id=>450,
|
1753
|
+
# :name=>"Arkonor",
|
1754
|
+
# :published=>true}
|
1755
|
+
|
1756
|
+
group.category_id # => 25
|
1757
|
+
group.group_id # => 450
|
1758
|
+
group.name # => "Arkonor"
|
1759
|
+
group.published # => true
|
1760
|
+
group.type_ids # => [22, 17425, 17426, 26852, 28367, 28385, 28387, 28625, 46678, 46691]
|
1761
|
+
```
|
1762
|
+
|
1641
1763
|
#### Bulk names to IDs
|
1642
1764
|
|
1643
1765
|
#### Get moon information
|
1644
1766
|
|
1767
|
+
```ruby
|
1768
|
+
options = { id: 40000004 }
|
1769
|
+
|
1770
|
+
moon = EveOnline::ESI::UniverseMoon.new(options)
|
1771
|
+
|
1772
|
+
moon.scope # => nil
|
1773
|
+
|
1774
|
+
moon.as_json # => {:moon_id=>40000004,
|
1775
|
+
# :name=>"Tanoo I - Moon 1",
|
1776
|
+
# :system_id=>30000001}
|
1777
|
+
|
1778
|
+
moon.moon_id # => 40000004
|
1779
|
+
moon.name # => "Tanoo I - Moon 1"
|
1780
|
+
moon.system_id # => 30000001
|
1781
|
+
|
1782
|
+
moon.position.as_json # => {:x=>162088094286.0,
|
1783
|
+
# :y=>21314854783.0,
|
1784
|
+
# :z=>-73598621491.0}
|
1785
|
+
|
1786
|
+
moon.position.x # => 162088094286.0
|
1787
|
+
moon.position.y # => 21314854783.0
|
1788
|
+
moon.position.z # => -73598621491.0
|
1789
|
+
```
|
1790
|
+
|
1645
1791
|
#### Get names and categories for a set of ID's
|
1646
1792
|
|
1647
1793
|
#### Get planet information
|
1648
1794
|
|
1795
|
+
```ruby
|
1796
|
+
options = { id: 40000002 }
|
1797
|
+
|
1798
|
+
planet = EveOnline::ESI::UniversePlanet.new(options)
|
1799
|
+
|
1800
|
+
planet.scope # => nil
|
1801
|
+
|
1802
|
+
planet.as_json # => {:name=>"Tanoo I",
|
1803
|
+
# :planet_id=>40000002,
|
1804
|
+
# :system_id=>30000001,
|
1805
|
+
# :type_id=>11}
|
1806
|
+
|
1807
|
+
planet.name # => "Tanoo I"
|
1808
|
+
planet.planet_id # => 40000002
|
1809
|
+
planet.system_id # => 30000001
|
1810
|
+
planet.type_id # => 11
|
1811
|
+
|
1812
|
+
planet.position.as_json # => {:x=>161891117336.0,
|
1813
|
+
# :y=>21288951986.0,
|
1814
|
+
# :z=>-73529712226.0}
|
1815
|
+
|
1816
|
+
planet.position.x # => 161891117336.0
|
1817
|
+
planet.position.y # => 21288951986.0
|
1818
|
+
planet.position.z # => -73529712226.0
|
1819
|
+
```
|
1820
|
+
|
1649
1821
|
#### Get character races
|
1650
1822
|
|
1651
1823
|
```ruby
|
@@ -1704,18 +1876,196 @@ region.region_id # => 10000001
|
|
1704
1876
|
|
1705
1877
|
#### Get stargate information
|
1706
1878
|
|
1879
|
+
```ruby
|
1880
|
+
options = { id: 50000056 }
|
1881
|
+
|
1882
|
+
stargate = EveOnline::ESI::UniverseStargate.new(options)
|
1883
|
+
|
1884
|
+
stargate.scope # => nil
|
1885
|
+
|
1886
|
+
stargate.as_json # => {:name=>"Stargate (Akpivem)",
|
1887
|
+
# :stargate_id=>50000056,
|
1888
|
+
# :system_id=>30000001,
|
1889
|
+
# :type_id=>29624}
|
1890
|
+
|
1891
|
+
stargate.name # => "Stargate (Akpivem)"
|
1892
|
+
stargate.stargate_id # => 50000056
|
1893
|
+
stargate.system_id # => 30000001
|
1894
|
+
stargate.type_id # => 29624
|
1895
|
+
|
1896
|
+
stargate.destination.as_json # => {:stargate_id=>50000342,
|
1897
|
+
# :system_id=>30000003}
|
1898
|
+
|
1899
|
+
stargate.destination.stargate_id # => 50000342
|
1900
|
+
stargate.destination.system_id # => 30000003
|
1901
|
+
|
1902
|
+
stargate.position.as_json # => {:x=>331516354560.0,
|
1903
|
+
# :y=>43597455360.0,
|
1904
|
+
# :z=>-586353991680.0}
|
1905
|
+
|
1906
|
+
stargate.position.x # => 331516354560.0
|
1907
|
+
stargate.position.y # => 43597455360.0
|
1908
|
+
stargate.position.z # => -586353991680.0
|
1909
|
+
```
|
1910
|
+
|
1707
1911
|
#### Get star information
|
1708
1912
|
|
1913
|
+
```ruby
|
1914
|
+
options = { id: 40000001 }
|
1915
|
+
|
1916
|
+
star = EveOnline::ESI::UniverseStar.new(options)
|
1917
|
+
|
1918
|
+
star.scope # => nil
|
1919
|
+
|
1920
|
+
star.as_json # => {:age=>14262808228,
|
1921
|
+
# :luminosity=>0.01575000025331974,
|
1922
|
+
# :name=>"Tanoo - Star",
|
1923
|
+
# :radius=>126700000,
|
1924
|
+
# :solar_system_id=>30000001,
|
1925
|
+
# :spectral_class=>"K2 V",
|
1926
|
+
# :temperature=>4567,
|
1927
|
+
# :type_id=>45041}
|
1928
|
+
|
1929
|
+
star.age # => 14262808228
|
1930
|
+
star.luminosity # => 0.01575000025331974
|
1931
|
+
star.name # => "Tanoo - Star"
|
1932
|
+
star.radius # => 126700000
|
1933
|
+
star.solar_system_id # => 30000001
|
1934
|
+
star.spectral_class # => "K2 V"
|
1935
|
+
star.temperature # => 4567
|
1936
|
+
star.type_id # => 45041
|
1937
|
+
|
1938
|
+
# options = { id: 60012526 }
|
1939
|
+
|
1940
|
+
# star = EveOnline::ESI::UniverseStar.new(options) => 500
|
1941
|
+
```
|
1942
|
+
|
1709
1943
|
#### Get station information
|
1710
1944
|
|
1945
|
+
```ruby
|
1946
|
+
options = { id: 60012526 }
|
1947
|
+
|
1948
|
+
station = EveOnline::ESI::UniverseStation.new(options)
|
1949
|
+
|
1950
|
+
station.scope # => nil
|
1951
|
+
|
1952
|
+
station.as_json # => {:max_dockable_ship_volume=>50000000.0,
|
1953
|
+
# :name=>"Tanoo V - Moon 1 - Ammatar Consulate Bureau",
|
1954
|
+
# :office_rental_cost=>422500.0,
|
1955
|
+
# :owner=>1000126,
|
1956
|
+
# :race_id=>2,
|
1957
|
+
# :reprocessing_efficiency=>0.5,
|
1958
|
+
# :reprocessing_stations_take=>0.05,
|
1959
|
+
# :services=>
|
1960
|
+
# ["bounty-missions",
|
1961
|
+
# "courier-missions",
|
1962
|
+
# "interbus",
|
1963
|
+
# "reprocessing-plant",
|
1964
|
+
# "market",
|
1965
|
+
# "stock-exchange",
|
1966
|
+
# "cloning",
|
1967
|
+
# "repair-facilities",
|
1968
|
+
# "fitting",
|
1969
|
+
# "news",
|
1970
|
+
# "insurance",
|
1971
|
+
# "docking",
|
1972
|
+
# "office-rental",
|
1973
|
+
# "loyalty-point-store",
|
1974
|
+
# "navy-offices",
|
1975
|
+
# "security-offices"],
|
1976
|
+
# :station_id=>60012526,
|
1977
|
+
# :system_id=>30000001,
|
1978
|
+
# :type_id=>2502}
|
1979
|
+
|
1980
|
+
station.max_dockable_ship_volume # => 50000000.0
|
1981
|
+
station.name # => "Tanoo V - Moon 1 - Ammatar Consulate Bureau"
|
1982
|
+
station.office_rental_cost # => 422500.0
|
1983
|
+
station.owner # => 1000126
|
1984
|
+
station.race_id # => 2
|
1985
|
+
station.reprocessing_efficiency # => 0.5
|
1986
|
+
station.reprocessing_stations_take # => 0.05
|
1987
|
+
station.services # => ["bounty-missions",
|
1988
|
+
# "courier-missions",
|
1989
|
+
# "interbus",
|
1990
|
+
# "reprocessing-plant",
|
1991
|
+
# "market",
|
1992
|
+
# "stock-exchange",
|
1993
|
+
# "cloning",
|
1994
|
+
# "repair-facilities",
|
1995
|
+
# "fitting",
|
1996
|
+
# "news",
|
1997
|
+
# "insurance",
|
1998
|
+
# "docking",
|
1999
|
+
# "office-rental",
|
2000
|
+
# "loyalty-point-store",
|
2001
|
+
# "navy-offices",
|
2002
|
+
# "security-offices"]
|
2003
|
+
station.station_id # => 60012526
|
2004
|
+
station.system_id # => 30000001
|
2005
|
+
station.type_id # => 2502
|
2006
|
+
|
2007
|
+
station.position.as_json # => {:x=>-1106145239040.0,
|
2008
|
+
# :y=>-145460060160.0,
|
2009
|
+
# :z=>182618726400.0}
|
2010
|
+
|
2011
|
+
station.position.x # => -1106145239040.0
|
2012
|
+
station.position.y # => -145460060160.0
|
2013
|
+
station.position.z # => 182618726400.0
|
2014
|
+
```
|
2015
|
+
|
1711
2016
|
#### List all public structures
|
1712
2017
|
|
2018
|
+
```ruby
|
2019
|
+
structures = EveOnline::ESI::UniverseStructures.new
|
2020
|
+
|
2021
|
+
structures.scope # => nil
|
2022
|
+
|
2023
|
+
structures.structure_ids.size # => 4181
|
2024
|
+
|
2025
|
+
structures.structure_ids.first # => 1028178624512
|
2026
|
+
```
|
2027
|
+
|
1713
2028
|
#### Get structure information
|
1714
2029
|
|
1715
2030
|
#### Get system jumps
|
1716
2031
|
|
2032
|
+
```ruby
|
2033
|
+
system_jumps = EveOnline::ESI::UniverseSystemJumps.new
|
2034
|
+
|
2035
|
+
system_jumps.scope # => nil
|
2036
|
+
|
2037
|
+
system_jumps.system_jumps.size # => 4891
|
2038
|
+
|
2039
|
+
jump = system_jumps.system_jumps.first
|
2040
|
+
|
2041
|
+
jump.as_json # => {:ship_jumps=>22, :system_id=>30005327}
|
2042
|
+
|
2043
|
+
jump.ship_jumps # => 22
|
2044
|
+
jump.system_id # => 30005327
|
2045
|
+
```
|
2046
|
+
|
1717
2047
|
#### Get system kills
|
1718
2048
|
|
2049
|
+
```ruby
|
2050
|
+
system_kills = EveOnline::ESI::UniverseSystemKills.new
|
2051
|
+
|
2052
|
+
system_kills.scope # => nil
|
2053
|
+
|
2054
|
+
system_kills.system_kills.size # => 3185
|
2055
|
+
|
2056
|
+
system_kill = system_kills.system_kills.first
|
2057
|
+
|
2058
|
+
system_kill.as_json # => {:npc_kills=>231,
|
2059
|
+
# :pod_kills=>0,
|
2060
|
+
# :ship_kills=>0,
|
2061
|
+
# :system_id=>30001746}
|
2062
|
+
|
2063
|
+
system_kill.npc_kills # => 231
|
2064
|
+
system_kill.pod_kills # => 0
|
2065
|
+
system_kill.ship_kills # => 0
|
2066
|
+
system_kill.system_id # => 30001746
|
2067
|
+
```
|
2068
|
+
|
1719
2069
|
#### Get solar systems
|
1720
2070
|
|
1721
2071
|
```ruby
|
@@ -1730,6 +2080,52 @@ systems.universe_system_ids.first # => 30000001
|
|
1730
2080
|
|
1731
2081
|
#### Get solar system information
|
1732
2082
|
|
2083
|
+
```ruby
|
2084
|
+
options = { id: 30000001, language: 'en-us' }
|
2085
|
+
|
2086
|
+
system = EveOnline::ESI::UniverseSystem.new(options)
|
2087
|
+
|
2088
|
+
system.scope # => nil
|
2089
|
+
|
2090
|
+
system.as_json # => {:constellation_id=>20000001,
|
2091
|
+
# :name=>"Tanoo",
|
2092
|
+
# :security_class=>"B",
|
2093
|
+
# :security_status=>0.8583240509033203,
|
2094
|
+
# :star_id=>40000001,
|
2095
|
+
# :system_id=>30000001}
|
2096
|
+
|
2097
|
+
system.constellation_id # => 20000001
|
2098
|
+
system.name # => "Tanoo"
|
2099
|
+
system.security_class # => "B"
|
2100
|
+
system.security_status # => 0.8583240509033203
|
2101
|
+
system.star_id # => 40000001
|
2102
|
+
system.system_id # => 30000001
|
2103
|
+
|
2104
|
+
system.position.as_json # => {:x=>-8.851079259998058e+16,
|
2105
|
+
# :y=>4.236944396687888e+16,
|
2106
|
+
# :z=>-4.451352534647966e+16}
|
2107
|
+
|
2108
|
+
system.position.x # => -8.851079259998058e+16
|
2109
|
+
system.position.y # => 4.236944396687888e+16
|
2110
|
+
system.position.z # => -4.451352534647966e+16
|
2111
|
+
|
2112
|
+
system.planets.size # => 6
|
2113
|
+
|
2114
|
+
planet = system.planets.first
|
2115
|
+
|
2116
|
+
planet.as_json # => {:planet_id=>40000002}
|
2117
|
+
|
2118
|
+
planet.planet_id # => 40000002
|
2119
|
+
|
2120
|
+
planet.asteroid_belt_ids # => [40000003]
|
2121
|
+
|
2122
|
+
planet.moon_ids # => [40000004]
|
2123
|
+
|
2124
|
+
system.stargate_ids # => [50000056, 50000057, 50000058]
|
2125
|
+
|
2126
|
+
system.station_ids # => [60012526, 60014437]
|
2127
|
+
```
|
2128
|
+
|
1733
2129
|
#### Get types
|
1734
2130
|
|
1735
2131
|
```ruby
|