Module: Fetcher::Microdata::UserComments::Facebook

Defined in:
lib/fetcher/microdata/user_comments/facebook/coercer.rb

Constant Summary collapse

Coercer =
proc { |comment|
  {
    :id => comment["id"],
    :creator => PersonUser.new(:facebook, { "id" => "#{comment["fromid"]}" }),
    :commentText => comment["text"],
    :likes_count => comment["likes"],
    :commentTime => "#{comment["time"]}"
  }
}