MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / toCargo

Method toCargo

gui/fitCommands/helpers.py:339–343  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

337 return info
338
339 def toCargo(self):
340 item = Market.getInstance().getItem(self.itemID)
341 cargo = Cargo(item)
342 cargo.amount = self.amount
343 return cargo
344
345 def __repr__(self):
346 return makeReprStr(self, ['itemID', 'amount'])

Callers 1

DoMethod · 0.80

Calls 3

CargoClass · 0.90
getItemMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected