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.
144
145
146
|
# File 'lib/sw_info.rb', line 144
def data
@data
end
|
Instance Method Details
#cargo_capacity ⇒ Object
178
179
180
|
# File 'lib/sw_info.rb', line 178
def cargo_capacity
@data['cargo_capacity']
end
|
#consumables ⇒ Object
182
183
184
|
# File 'lib/sw_info.rb', line 182
def consumables
@data['consumables']
end
|
#cost_in_credits ⇒ Object
158
159
160
|
# File 'lib/sw_info.rb', line 158
def cost_in_credits
@data['cost_in_credits']
end
|
#crew ⇒ Object
170
171
172
|
# File 'lib/sw_info.rb', line 170
def crew
@data['crew']
end
|
#length ⇒ Object
162
163
164
|
# File 'lib/sw_info.rb', line 162
def length
@data['length']
end
|
#manufacturer ⇒ Object
154
155
156
|
# File 'lib/sw_info.rb', line 154
def manufacturer
@data['manufacturer']
end
|
#max_atmosphering_speed ⇒ Object
166
167
168
|
# File 'lib/sw_info.rb', line 166
def max_atmosphering_speed
@data['max_atmosphering_speed']
end
|
#model ⇒ Object
150
151
152
|
# File 'lib/sw_info.rb', line 150
def model
@data['model']
end
|
#passengers ⇒ Object
174
175
176
|
# File 'lib/sw_info.rb', line 174
def passengers
@data['passengers']
end
|
#vehicle_class ⇒ Object
186
187
188
|
# File 'lib/sw_info.rb', line 186
def vehicle_class
@data['vehicle_class']
end
|
#vehicles ⇒ Object
146
147
148
|
# File 'lib/sw_info.rb', line 146
def vehicles
@data['vehicles']
end
|