Class: Vehicle
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Pal
all, find, #id, #initialize, #name, search_for_all, search_for_id, #to_s
Constructor Details
This class inherits a constructor from Pal
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
158
159
160
|
# File 'lib/sw_info.rb', line 158
def data
@data
end
|
Instance Method Details
#cargo_capacity ⇒ Object
192
193
194
|
# File 'lib/sw_info.rb', line 192
def cargo_capacity
@data['cargo_capacity']
end
|
#consumables ⇒ Object
196
197
198
|
# File 'lib/sw_info.rb', line 196
def consumables
@data['consumables']
end
|
#cost_in_credits ⇒ Object
172
173
174
|
# File 'lib/sw_info.rb', line 172
def cost_in_credits
@data['cost_in_credits']
end
|
#crew ⇒ Object
184
185
186
|
# File 'lib/sw_info.rb', line 184
def crew
@data['crew']
end
|
#length ⇒ Object
176
177
178
|
# File 'lib/sw_info.rb', line 176
def length
@data['length']
end
|
#manufacturer ⇒ Object
168
169
170
|
# File 'lib/sw_info.rb', line 168
def manufacturer
@data['manufacturer']
end
|
#max_atmosphering_speed ⇒ Object
180
181
182
|
# File 'lib/sw_info.rb', line 180
def max_atmosphering_speed
@data['max_atmosphering_speed']
end
|
#model ⇒ Object
164
165
166
|
# File 'lib/sw_info.rb', line 164
def model
@data['model']
end
|
#passengers ⇒ Object
188
189
190
|
# File 'lib/sw_info.rb', line 188
def passengers
@data['passengers']
end
|
#vehicle_class ⇒ Object
200
201
202
|
# File 'lib/sw_info.rb', line 200
def vehicle_class
@data['vehicle_class']
end
|
#vehicles ⇒ Object
160
161
162
|
# File 'lib/sw_info.rb', line 160
def vehicles
@data['vehicles']
end
|