INNER CODE UNIT · Python

__repr__

infosecB/LOOBins · src/pyloobins/models.py:166

    def __repr__(self) -> str:
        return self.name


class LOOBinsGroup(RootModel):
    """LOOBin list base class"""

    root: List[LOOBin] = Field(title="LOOBins", description="A list of LOOBins")

    def to_stix_bundle(self) -> Bundle:
        return Bundle(objects=[loobin.to_stix() for loobin in self.root])

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…