Sha256: 4914c76c0a6677acf77ac378fe1668c0323be59832576d470a7fdc2f2c7853ae
Contents?: true
Size: 405 Bytes
Versions: 5
Compression:
Stored size: 405 Bytes
Contents
require "microformat/format" require "microformat/card" module Microformat class ReviewAggregate < Format selector ".hreview-aggregate" attribute_definition do |root| root.attribute(:item, format: Card) root.attribute(:rating, cast: :decimal) root.attribute(:count, cast: :integer) root.attribute(:votes, cast: :integer) root.attribute(:summary) end end end
Version data entries
5 entries across 5 versions & 2 rubygems