Sha256: 2e63fee6d2e4067a1d5fdef8fbf32aac9b2197c6ea39f9d0159d5c434692c04f

Contents?: true

Size: 560 Bytes

Versions: 7

Compression:

Stored size: 560 Bytes

Contents

require "microformat/format"
require "microformat/card"

module Microformat
  class Review < Format
    selector ".hreview"
    
    attribute_definition do |root|
      root.attribute(:summary)
      root.attribute(:type)
      root.attribute(:item, format: Card)
      root.attribute(:reviewer, format: Card)
      root.attribute(:rating, cast: :decimal)
      root.attribute(:description)
      root.attribute(:tags, multiple: true, selector: "[rel='tag']")
      root.attribute(:permalink, selector: "[rel='bookmark']", attribute: "href")
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
elcamino-microformat-0.0.8 lib/microformat/review.rb
microformat-0.0.7 lib/microformat/review.rb
microformat-0.0.6 lib/microformat/review.rb
microformat-0.0.5 lib/microformat/review.rb
microformat-0.0.4 lib/microformat/review.rb
microformat-0.0.3 lib/microformat/review.rb
microformat-0.0.2 lib/microformat/review.rb