Sha256: 47beac69bd123a0dbe2aa519a87f4e2dedd7ac3ad25d40ce680ba01123a69375
Contents?: true
Size: 877 Bytes
Versions: 6
Compression:
Stored size: 877 Bytes
Contents
require 'mida/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida/vocabularies/schemaorg/thing' autoload :Rating, 'mida/vocabularies/schemaorg/rating' # The average rating based on multiple ratings or reviews. class AggregateRating < Mida::Vocabulary itemtype %r{http://schema.org/AggregateRating}i include_vocabulary Mida::SchemaOrg::Thing include_vocabulary Mida::SchemaOrg::Rating # The item that is being reviewed/rated. has_many 'itemReviewed' do extract Mida::SchemaOrg::Thing extract Mida::DataType::Text end # The count of total number of ratings. has_many 'ratingCount' do extract Mida::DataType::Number end # The count of total number of reviews. has_many 'reviewCount' do extract Mida::DataType::Number end end end end
Version data entries
6 entries across 6 versions & 1 rubygems