Sha256: 028b97dbf8b46d008257d11f0cd99639244fc145df65a5746b943036213c42e8
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
module Writer module Fetcher module Microdata class Review attr_accessor :source def initialize the_source self.source = the_source end def hash @attributes = @source.attributes { "type" => [@source._type], "properties" => { "additionalType" => [ @attributes[:additionalType] ], "Item#id" => [ @attributes[:id] ], "articleBody" => [ @attributes[:articleBody] ], "author" => [ @attributes[:author].to.hash ], "Item#viewer" => [ @attributes[:viewer].to.hash ], "dateCreated" => [ @attributes[:dateCreated] ], "provider" => @attributes[:provider], "url" => [ @attributes[:url] ], "itemReviewed" => [ @attributes[:itemReviewed] ] } } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems