Sha256: 51762c15dd4aaf68704c72c9bd8913204b7244a9d5c3c800a691680345e57846
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 Bytes
Contents
class TweetSlim attr_accessor :text, :author, :timestamp, :id, :candidate, :orig_id def initialize(candidate,status) @text = status["text"] @author = status["user"]["screen_name"] @timestamp = status["created_at"] @id = status["id"] @candidate = candidate @orig_id = status["retweeted_status"] == nil ? nil : status["retweeted_status"]["id"] end def prettyprint # puts LesserEvil::SEPARATOR puts @text.white.on_black puts "@#{@author} #{@timestamp}".blue end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lesser-evil-0.0.2 | lib/lesser_evil/tweet_slim.rb |
lesser-evil-0.0.1 | lib/lesser_evil/tweet_slim.rb |
lesser-evil-0.0.0 | lib/lesser_evil/tweet_slim.rb |