Sha256: 334689444f64fea99a7efaa64f4a4129ade8afc62b87dc31798fb7d6475a0b3b
Contents?: true
Size: 1.13 KB
Versions: 2
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] ], "reviewBody" => [ @attributes[:reviewBody] ], "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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fetcher-microdata-0.0.8 | lib/writer/fetcher-microdata/review.rb |
fetcher-microdata-0.0.7 | lib/writer/fetcher-microdata/review.rb |