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

7 lines
207 B
Smalltalk
Raw Normal View History

accessing
fromDictionary: aDictionary
created := (aDictionary at: 'created_at') asDateAndTime.
text := aDictionary at: 'text'.
id := aDictionary at: 'id'.
authorId := aDictionary at: 'author_id'.
^ self