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.
88
89
90
|
# File 'lib/sw_info.rb', line 88
def data
@data
end
|
Instance Method Details
#cargo_capacity ⇒ Object
122
123
124
|
# File 'lib/sw_info.rb', line 122
def cargo_capacity
@data['cargo_capacity']
end
|
#consumables ⇒ Object
126
127
128
|
# File 'lib/sw_info.rb', line 126
def consumables
@data['consumables']
end
|
#cost_in_credits ⇒ Object
102
103
104
|
# File 'lib/sw_info.rb', line 102
def cost_in_credits
@data['cost_in_credits']
end
|
#crew ⇒ Object
114
115
116
|
# File 'lib/sw_info.rb', line 114
def crew
@data['crew']
end
|
#hyperdrive_rating ⇒ Object
130
131
132
|
# File 'lib/sw_info.rb', line 130
def hyperdrive_rating
@data['hyperdrive_rating']
end
|
#length ⇒ Object
106
107
108
|
# File 'lib/sw_info.rb', line 106
def length
@data['length']
end
|
#manufacturer ⇒ Object
98
99
100
|
# File 'lib/sw_info.rb', line 98
def manufacturer
@data['manufacturer']
end
|
#max_atmosphering_speed ⇒ Object
110
111
112
|
# File 'lib/sw_info.rb', line 110
def max_atmosphering_speed
@data['max_atmosphering_speed']
end
|
#MGLT ⇒ Object
134
135
136
|
# File 'lib/sw_info.rb', line 134
def MGLT
@data['MGLT']
end
|
#model ⇒ Object
94
95
96
|
# File 'lib/sw_info.rb', line 94
def model
@data['model']
end
|
#passengers ⇒ Object
118
119
120
|
# File 'lib/sw_info.rb', line 118
def passengers
@data['passengers']
end
|
#starship_class ⇒ Object
138
139
140
|
# File 'lib/sw_info.rb', line 138
def starship_class
@data['starship_class']
end
|
#starships ⇒ Object
90
91
92
|
# File 'lib/sw_info.rb', line 90
def starships
@data['starships']
end
|