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