Sha256: be59a5b0006ea0a0ba780994fbb1fc1924f72dbd3985c31dbcd37efc96d59b3f
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' autoload :DayOfWeek, 'mida_vocabulary/vocabularies/schemaorg/dayofweek' # A structured value providing information about the opening hours of a place or a certain service inside a place. class OpeningHoursSpecification < Mida::Vocabulary itemtype %r{http://schema.org/OpeningHoursSpecification}i include_vocabulary Mida::SchemaOrg::Thing # The closing hour of the place or service on the given day(s) of the week. has_many 'closes' do extract Mida::DataType::Time end # The day of the week for which these opening hours are valid. has_many 'dayOfWeek' do extract Mida::SchemaOrg::DayOfWeek end # The opening hour of the place or service on the given day(s) of the week. has_many 'opens' do extract Mida::DataType::Time end # The date when the item becomes valid. has_many 'validFrom' do extract Mida::DataType::ISO8601Date end # The end of the validity of offer, price specification, or opening hours data. has_many 'validThrough' do extract Mida::DataType::ISO8601Date 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/openinghoursspecification.rb |