Module: Fetcher::Microdata::PersonUser::Twitter

Defined in:
lib/fetcher/microdata/person_user/twitter/coercer.rb

Constant Summary collapse

Coercer =
proc { |original_tweet|
  {
    :additionalType => "http://getfetcher.net/Item",
    :id             => original_tweet["id"],
    :name           => original_tweet["name"],
    :dateRegistered => Fetcher::Microdata::Twitter::Service.instance.created_at_to_timestamp(original_tweet["created_at"]),
    :description    => original_tweet["description"],
    :url            => "https://twitter.com/#{original_tweet["screen_name"]}"
  }
}