Class: Starship
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.
101
102
103
|
# File 'lib/sw_info.rb', line 101
def data
@data
end
|
Instance Method Details
#cargo_capacity ⇒ Object
135
136
137
|
# File 'lib/sw_info.rb', line 135
def cargo_capacity
@data['cargo_capacity']
end
|
#consumables ⇒ Object
139
140
141
|
# File 'lib/sw_info.rb', line 139
def consumables
@data['consumables']
end
|
#cost_in_credits ⇒ Object
115
116
117
|
# File 'lib/sw_info.rb', line 115
def cost_in_credits
@data['cost_in_credits']
end
|
#crew ⇒ Object
127
128
129
|
# File 'lib/sw_info.rb', line 127
def crew
@data['crew']
end
|
#hyperdrive_rating ⇒ Object
143
144
145
|
# File 'lib/sw_info.rb', line 143
def hyperdrive_rating
@data['hyperdrive_rating']
end
|
#length ⇒ Object
119
120
121
|
# File 'lib/sw_info.rb', line 119
def length
@data['length']
end
|
#manufacturer ⇒ Object
111
112
113
|
# File 'lib/sw_info.rb', line 111
def manufacturer
@data['manufacturer']
end
|
#max_atmosphering_speed ⇒ Object
123
124
125
|
# File 'lib/sw_info.rb', line 123
def max_atmosphering_speed
@data['max_atmosphering_speed']
end
|
#MGLT ⇒ Object
147
148
149
|
# File 'lib/sw_info.rb', line 147
def MGLT
@data['MGLT']
end
|
#model ⇒ Object
107
108
109
|
# File 'lib/sw_info.rb', line 107
def model
@data['model']
end
|
#passengers ⇒ Object
131
132
133
|
# File 'lib/sw_info.rb', line 131
def passengers
@data['passengers']
end
|
#starship_class ⇒ Object
151
152
153
|
# File 'lib/sw_info.rb', line 151
def starship_class
@data['starship_class']
end
|
#starships ⇒ Object
103
104
105
|
# File 'lib/sw_info.rb', line 103
def starships
@data['starships']
end
|