Sha256: 496de6e9353c84abfcc8fab2717044e91c39b1d741c4e46a5c2ea426cf6fedda
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' autoload :Offer, 'mida_vocabulary/vocabularies/schemaorg/offer' # When a single product that has different offers (for example, the same pair of shoes is offered by different merchants), then AggregateOffer can be used. class AggregateOffer < Mida::Vocabulary itemtype %r{http://schema.org/AggregateOffer}i include_vocabulary Mida::SchemaOrg::Thing include_vocabulary Mida::SchemaOrg::Offer # The highest price of all offers available. has_many 'highPrice' do extract Mida::DataType::Number extract Mida::DataType::Text end # The lowest price of all offers available. has_many 'lowPrice' do extract Mida::DataType::Number extract Mida::DataType::Text end # The number of offers for the product. has_many 'offerCount' do extract Mida::DataType::Integer end end end end
Version data entries
4 entries across 4 versions & 1 rubygems