Socialmetrica/Socialmetrica.package/NitterUser.class/instance/asDictionary.st

13 lines
421 B
Smalltalk
Raw Normal View History

accessing
asDictionary
| tweets |
tweets := self messages.
^ { 'profile-card-avatar' -> self profileImageFile fullName.
'profile-card-fullname' -> self name .
'profile-card-username' -> self userName .
'profile-bio' -> self profileBio.
'messages-size' -> tweets size.
'messages-newest' -> tweets newest created asDate greaseString.
'messages-oldest' -> tweets oldest created asDate greaseString
} asDictionary