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.



144
145
146
# File 'lib/sw_info.rb', line 144

def data
  @data
end

Instance Method Details

#cargo_capacityObject



178
179
180
# File 'lib/sw_info.rb', line 178

def cargo_capacity
  @data['cargo_capacity']
end

#consumablesObject



182
183
184
# File 'lib/sw_info.rb', line 182

def consumables
  @data['consumables']
end

#cost_in_creditsObject



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

def cost_in_credits
  @data['cost_in_credits']
end

#crewObject



170
171
172
# File 'lib/sw_info.rb', line 170

def crew
  @data['crew']
end

#lengthObject



162
163
164
# File 'lib/sw_info.rb', line 162

def length
  @data['length']
end

#manufacturerObject



154
155
156
# File 'lib/sw_info.rb', line 154

def manufacturer
  @data['manufacturer']
end

#max_atmosphering_speedObject



166
167
168
# File 'lib/sw_info.rb', line 166

def max_atmosphering_speed
  @data['max_atmosphering_speed']
end

#modelObject



150
151
152
# File 'lib/sw_info.rb', line 150

def model
  @data['model']
end

#passengersObject



174
175
176
# File 'lib/sw_info.rb', line 174

def passengers
  @data['passengers']
end

#vehicle_classObject



186
187
188
# File 'lib/sw_info.rb', line 186

def vehicle_class
  @data['vehicle_class']
end

#vehiclesObject



146
147
148
# File 'lib/sw_info.rb', line 146

def vehicles
  @data['vehicles']
end