Sha256: 34e8231d193c8a711db9b0ec4b57c4a86f07ad2b0b0ccd1b254a826b4c4253ef
Contents?: true
Size: 786 Bytes
Versions: 1
Compression:
Stored size: 786 Bytes
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :Product, 'mida_vocabulary/vocabularies/schemaorg/product' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' autoload :QuantitativeValue, 'mida_vocabulary/vocabularies/schemaorg/quantitativevalue' # A placeholder for multiple similar products of the same kind. class SomeProducts < Mida::Vocabulary itemtype %r{http://schema.org/SomeProducts}i include_vocabulary Mida::SchemaOrg::Product include_vocabulary Mida::SchemaOrg::Thing # The current approximate inventory level for the item or items. has_many 'inventoryLevel' do extract Mida::SchemaOrg::QuantitativeValue extract Mida::DataType::Text end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mida_vocabulary-0.2.2 | lib/mida_vocabulary/vocabularies/schemaorg/someproducts.rb |