Sha256: 90023d4af1a728fa9ac785d154c9114f190d8ddea9cc62dcd2cdb4bcd4e9af8c
Contents?: true
Size: 815 Bytes
Versions: 5
Compression:
Stored size: 815 Bytes
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' # The rating of the video. class Rating < Mida::Vocabulary itemtype %r{http://schema.org/Rating}i include_vocabulary Mida::SchemaOrg::Thing # The highest value allowed in this rating system. If bestRating is omitted, 5 is assumed. has_many 'bestRating' do extract Mida::DataType::Number extract Mida::DataType::Text end # The rating for the content. has_many 'ratingValue' # The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed. has_many 'worstRating' do extract Mida::DataType::Number extract Mida::DataType::Text end end end end
Version data entries
5 entries across 5 versions & 1 rubygems