Sha256: 322e4c71887d4e928be250e32536f194d1ce466334cc823ca298801945601b55
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
module Fetcher class Microdata class ArticleSmall module Twitter 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.created_at_to_timestamp(original_tweet["created_at"]), :provider => ["twitter", original_tweet["source"]], :url => "https://twitter.com/#{original_tweet["user"]["screen_name"]}/status/#{original_tweet["id"]}" } } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems