Class: Vehicle

Inherits:
Pal
  • Object
show all
Defined in:
lib/sw_info.rb

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

#dataObject

Returns the value of attribute data.



158
159
160
# File 'lib/sw_info.rb', line 158

def data
  @data
end

Instance Method Details

#cargo_capacityObject



192
193
194
# File 'lib/sw_info.rb', line 192

def cargo_capacity
    @data['cargo_capacity']
end

#consumablesObject



196
197
198
# File 'lib/sw_info.rb', line 196

def consumables
    @data['consumables']
end

#cost_in_creditsObject



172
173
174
# File 'lib/sw_info.rb', line 172

def cost_in_credits
    @data['cost_in_credits']
end

#crewObject



184
185
186
# File 'lib/sw_info.rb', line 184

def crew
    @data['crew']
end

#lengthObject



176
177
178
# File 'lib/sw_info.rb', line 176

def length
    @data['length']
end

#manufacturerObject



168
169
170
# File 'lib/sw_info.rb', line 168

def manufacturer
    @data['manufacturer']
end

#max_atmosphering_speedObject



180
181
182
# File 'lib/sw_info.rb', line 180

def max_atmosphering_speed
    @data['max_atmosphering_speed']
end

#modelObject



164
165
166
# File 'lib/sw_info.rb', line 164

def model
    @data['model']
end

#passengersObject



188
189
190
# File 'lib/sw_info.rb', line 188

def passengers
    @data['passengers']
end

#vehicle_classObject



200
201
202
# File 'lib/sw_info.rb', line 200

def vehicle_class
    @data['vehicle_class']
end

#vehiclesObject



160
161
162
# File 'lib/sw_info.rb', line 160

def vehicles
    @data['vehicles']
end