Sha256: 3b8f8074376ee362d2bb671694ee1417fb2d1109e73a7735d3313e25068ef485
Contents?: true
Size: 1.3 KB
Versions: 6
Compression:
Stored size: 1.3 KB
Contents
require 'mida/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida/vocabularies/schemaorg/thing' autoload :Place, 'mida/vocabularies/schemaorg/place' autoload :Duration, 'mida/vocabularies/schemaorg/duration' # A public structure, such as a town hall or concert hall. class CivicStructure < Mida::Vocabulary itemtype %r{http://schema.org/CivicStructure}i include_vocabulary Mida::SchemaOrg::Thing include_vocabulary Mida::SchemaOrg::Place # The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.- Times are specified using 24:00 time. For example, 3pm is specified as 15:00. - Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>. - If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. has_many 'openingHours' do extract Mida::SchemaOrg::Duration extract Mida::DataType::Text end end end end
Version data entries
6 entries across 6 versions & 1 rubygems