MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / fromCargo

Method fromCargo

gui/fitCommands/helpers.py:331–337  ·  view source on GitHub ↗
(cls, cargo)

Source from the content-addressed store, hash-verified

329
330 @classmethod
331 def fromCargo(cls, cargo):
332 if cargo is None:
333 return None
334 info = cls(
335 itemID=cargo.itemID,
336 amount=cargo.amount)
337 return info
338
339 def toCargo(self):
340 item = Market.getInstance().getItem(self.itemID)

Callers 1

DoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected