Sha256: 8a4d3ddfbb775f6565b5ecd4ea6a665a1f0e4f57cd1db458a9d49d3e8f232eed
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
module Writer module Fetcher module Microdata class UserComments attr_accessor :source def initialize the_source self.source = the_source end def hash @attributes = @source.attributes aux = @attributes[:id].split("_") url = "https://www.facebook.com/#{aux[1]}?comment_id=#{aux[2]}" { "type" => [@source._type], "properties" => { "additionalType" => [ @attributes[:additionalType] ], "Item#id" => [ "#{@attributes[:id]}" ], "commentText" => [ @attributes[:commentText] ], "creator" => [ @attributes[:creator].to.hash ], "commentTime" => [ @attributes[:commentTime] ], "url" => [ url ] } } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fetcher-microdata-0.0.12 | lib/writer/fetcher-microdata/user_comments.rb |
fetcher-microdata-0.0.11 | lib/writer/fetcher-microdata/user_comments.rb |