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.



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

def data
  @data
end

Instance Method Details

#cargo_capacityObject



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

def cargo_capacity
    @data['cargo_capacity']
end

#consumablesObject



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

def consumables
    @data['consumables']
end

#cost_in_creditsObject



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

def cost_in_credits
    @data['cost_in_credits']
end

#crewObject



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

def crew
    @data['crew']
end

#hyperdrive_ratingObject



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

def hyperdrive_rating
    @data['hyperdrive_rating']
end

#lengthObject



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

def length
    @data['length']
end

#manufacturerObject



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

def manufacturer
    @data['manufacturer']
end

#max_atmosphering_speedObject



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

def max_atmosphering_speed
    @data['max_atmosphering_speed']
end

#MGLTObject



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

def MGLT
    @data['MGLT']
end

#modelObject



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

def model
    @data['model']
end

#passengersObject



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

def passengers
    @data['passengers']
end

#starship_classObject



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

def starship_class
    @data['starship_class']
end

#starshipsObject



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

def starships
    @data['starships']
end