Class: Starship

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.



88
89
90
# File 'lib/sw_info.rb', line 88

def data
  @data
end

Instance Method Details

#cargo_capacityObject



122
123
124
# File 'lib/sw_info.rb', line 122

def cargo_capacity
  @data['cargo_capacity']
end

#consumablesObject



126
127
128
# File 'lib/sw_info.rb', line 126

def consumables
  @data['consumables']
end

#cost_in_creditsObject



102
103
104
# File 'lib/sw_info.rb', line 102

def cost_in_credits
  @data['cost_in_credits']
end

#crewObject



114
115
116
# File 'lib/sw_info.rb', line 114

def crew
  @data['crew']
end

#hyperdrive_ratingObject



130
131
132
# File 'lib/sw_info.rb', line 130

def hyperdrive_rating
  @data['hyperdrive_rating']
end

#lengthObject



106
107
108
# File 'lib/sw_info.rb', line 106

def length
  @data['length']
end

#manufacturerObject



98
99
100
# File 'lib/sw_info.rb', line 98

def manufacturer
  @data['manufacturer']
end

#max_atmosphering_speedObject



110
111
112
# File 'lib/sw_info.rb', line 110

def max_atmosphering_speed
  @data['max_atmosphering_speed']
end

#MGLTObject



134
135
136
# File 'lib/sw_info.rb', line 134

def MGLT
  @data['MGLT']
end

#modelObject



94
95
96
# File 'lib/sw_info.rb', line 94

def model
  @data['model']
end

#passengersObject



118
119
120
# File 'lib/sw_info.rb', line 118

def passengers
  @data['passengers']
end

#starship_classObject



138
139
140
# File 'lib/sw_info.rb', line 138

def starship_class
  @data['starship_class']
end

#starshipsObject



90
91
92
# File 'lib/sw_info.rb', line 90

def starships
  @data['starships']
end