Sha256: 767a2b1eeb12717fd002ce001ff421984871cedb11d194bb651eb6f771da186f
Contents?: true
Size: 793 Bytes
Versions: 6
Compression:
Stored size: 793 Bytes
Contents
require 'mida/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida/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
6 entries across 6 versions & 1 rubygems