schema chaining

This commit is contained in:
Lex Berezhny 2020-03-23 18:54:15 -04:00
parent fd2f9846e9
commit 2309d6354c

View file

@ -151,6 +151,8 @@ class BaseClaim:
for key, value in kwargs.items():
setattr(self, key, value)
return self
@property
def title(self) -> str:
return self.claim.message.title
@ -267,6 +269,8 @@ class Stream(BaseClaim):
super().update(**kwargs)
return self
@property
def author(self) -> str:
return self.message.author