Module: Fetcher::Microdata::ArticleSmall::Twitter
- Defined in:
- lib/fetcher/microdata/article_small/twitter/coercer.rb
Constant Summary collapse
- Coercer =
proc { |original_tweet, viewer| { :id => original_tweet["id"], :additionalType => "http://getfetcher.net/Item", :articleBody => original_tweet["text"], :author => PersonUser.new(:twitter, original_tweet["user"]), :viewer => PersonUser.new(:twitter, viewer), :dateCreated => Fetcher::Microdata::Twitter::Service.instance.(original_tweet["created_at"]), :provider => ["twitter", original_tweet["source"]], :url => "https://twitter.com/#{original_tweet["user"]["screen_name"]}/status/#{original_tweet["id"]}" } }