Module: LastTweetRedux::Formatter
- Extended by:
- Formatter, Twitter::Autolink
- Included in:
- Formatter
- Defined in:
- lib/last_tweet_redux/formatter.rb
Instance Method Summary collapse
Instance Method Details
#process(raw_tweet) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/last_tweet_redux/formatter.rb', line 7 def process(raw_tweet) { body: auto_link(raw_tweet['text'], target: '_blank', url_entities: raw_tweet['entities']['urls']), created_at: raw_tweet['created_at'], url: "https://twitter.com/dakull/status/#{raw_tweet['id']}" } end |