Sha256: 5845e4af26d972dff783bf5768d97e916b913c79aa5e896b93dff12df708892c
Contents?: true
Size: 1.14 KB
Versions: 4
Compression:
Stored size: 1.14 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].to.hash ] } } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems