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

9 lines
313 B
Smalltalk
Raw Permalink Normal View History

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