Class: EveOnline::ESI::Resources::UniverseResources
- Inherits:
-
Resource
- Object
- Resource
- EveOnline::ESI::Resources::UniverseResources
show all
- Defined in:
- lib/eve_online/esi/resources/universe_resources.rb
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#default_headers, #get_request, #initialize, #post_request, #user_agent
Instance Method Details
#ancestries ⇒ Object
7
8
9
10
11
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 7
def ancestries
response = get_request("universe/ancestries")
Collection.from_response(response, type: Models::Ancestry)
end
|
#asteroid_belt(id:) ⇒ Object
93
94
95
96
97
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 93
def asteroid_belt(id:)
response = get_request("universe/asteroid_belts/#{id}")
Models::AsteroidBelt.new(attributes: response.body, headers: response.)
end
|
#bloodlines ⇒ Object
13
14
15
16
17
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 13
def bloodlines
response = get_request("universe/bloodlines")
Collection.from_response(response, type: Models::Bloodline)
end
|
#categories ⇒ Object
129
130
131
132
133
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 129
def categories
response = get_request("universe/categories")
Models::Categories.new(body: response.body, headers: response.)
end
|
#category(id:) ⇒ Object
136
137
138
139
140
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 136
def category(id:)
response = get_request("universe/categories/#{id}")
Models::Category.new(attributes: response.body, headers: response.)
end
|
#constellation(id:) ⇒ Object
106
107
108
109
110
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 106
def constellation(id:)
response = get_request("universe/constellations/#{id}")
Models::Constellation.new(attributes: response.body, headers: response.)
end
|
#constellations ⇒ Object
99
100
101
102
103
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 99
def constellations
response = get_request("universe/constellations")
Models::Constellations.new(body: response.body, headers: response.)
end
|
19
20
21
22
23
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 19
def factions
response = get_request("universe/factions")
Collection.from_response(response, type: Models::Faction)
end
|
#graphic(id:) ⇒ Object
149
150
151
152
153
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 149
def graphic(id:)
response = get_request("universe/graphics/#{id}")
Models::Graphic.new(attributes: response.body, headers: response.)
end
|
142
143
144
145
146
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 142
def graphics
response = get_request("universe/graphics")
Models::Graphics.new(body: response.body, headers: response.)
end
|
#group(id:) ⇒ Object
123
124
125
126
127
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 123
def group(id:)
response = get_request("universe/groups/#{id}")
Models::Group.new(attributes: response.body, headers: response.)
end
|
#groups(page: 1) ⇒ Object
113
114
115
116
117
118
119
120
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 113
def groups(page: 1)
response = get_request("universe/groups",
params: {
page: page
})
Models::Groups.new(body: response.body, headers: response.)
end
|
#moon(id:) ⇒ Object
52
53
54
55
56
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 52
def moon(id:)
response = get_request("universe/moons/#{id}")
Models::Moon.new(attributes: response.body, headers: response.)
end
|
#planet(id:) ⇒ Object
59
60
61
62
63
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 59
def planet(id:)
response = get_request("universe/planets/#{id}")
Models::Planet.new(attributes: response.body, headers: response.)
end
|
25
26
27
28
29
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 25
def races
response = get_request("universe/races")
Collection.from_response(response, type: Models::Race)
end
|
#region(id:) ⇒ Object
72
73
74
75
76
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 72
def region(id:)
response = get_request("universe/regions/#{id}")
Models::Region.new(attributes: response.body, headers: response.)
end
|
65
66
67
68
69
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 65
def regions
response = get_request("universe/regions")
Models::Regions.new(body: response.body, headers: response.)
end
|
#star(id:) ⇒ Object
79
80
81
82
83
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 79
def star(id:)
response = get_request("universe/stars/#{id}")
Models::Star.new(attributes: response.body, headers: response.)
end
|
#stargate(id:) ⇒ Object
86
87
88
89
90
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 86
def stargate(id:)
response = get_request("universe/stargates/#{id}")
Models::Stargate.new(attributes: response.body, headers: response.)
end
|
#station(id:) ⇒ Object
45
46
47
48
49
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 45
def station(id:)
response = get_request("universe/stations/#{id}")
Models::Station.new(attributes: response.body, headers: response.)
end
|
#structures(filter: nil) ⇒ Object
173
174
175
176
177
178
179
180
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 173
def structures(filter: nil)
response = get_request("universe/structures",
params: {
filter: filter
}.compact)
Models::Structures.new(body: response.body, headers: response.)
end
|
#system(id:) ⇒ Object
38
39
40
41
42
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 38
def system(id:)
response = get_request("universe/systems/#{id}")
Models::System.new(attributes: response.body, headers: response.)
end
|
31
32
33
34
35
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 31
def systems
response = get_request("universe/systems")
Models::Systems.new(body: response.body, headers: response.)
end
|
#type(id:) ⇒ Object
166
167
168
169
170
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 166
def type(id:)
response = get_request("universe/types/#{id}")
Models::Type.new(attributes: response.body, headers: response.)
end
|
#types(page: 1) ⇒ Object
156
157
158
159
160
161
162
163
|
# File 'lib/eve_online/esi/resources/universe_resources.rb', line 156
def types(page: 1)
response = get_request("universe/types",
params: {
page: page
})
Models::Types.new(body: response.body, headers: response.)
end
|