Method
__init__
(self, channel, seq, event, body, json=None)
Source from the content-addressed store, hash-verified
| 552 | """ |
| 553 | |
| 554 | def __init__(self, channel, seq, event, body, json=None): |
| 555 | super().__init__(channel, seq, json) |
| 556 | |
| 557 | self.event = event |
| 558 | |
| 559 | if isinstance(body, MessageDict) and hasattr(body, "associate_with"): |
| 560 | body.associate_with(self) |
| 561 | self.body = body |
| 562 | |
| 563 | def describe(self): |
| 564 | return f"#{self.seq} event {json.repr(self.event)} from {self.channel}" |
Tested by
no test coverage detected