Socialmetrica/Datanalitica.package/Tweet.class/instance/fromNitter..st

9 lines
313 B
Smalltalk
Raw Normal View History

2022-03-28 23:58:07 +00:00
accessing
fromNitter: aDictionary
"created := (aDictionary at: 'pubDate') asDateAndTime."
text := aDictionary at: 'text'.
"id := aDictionary at: 'id'.
authorId := aDictionary at: 'author_id'."
user := aDictionary at: 'creator'.
"conversationId := aDictionary at: 'conversation_id' ifAbsent: [ '' ]."
^ self