Sha256: 339d6b018523868496135dd435c1e7dd8b8453c48331fafecff2991183219a2d
Contents?: true
Size: 684 Bytes
Versions: 4
Compression:
Stored size: 684 Bytes
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework' autoload :BlogPosting, 'mida_vocabulary/vocabularies/schemaorg/blogposting' # A blog class Blog < Mida::Vocabulary itemtype %r{http://schema.org/Blog}i include_vocabulary Mida::SchemaOrg::Thing include_vocabulary Mida::SchemaOrg::CreativeWork # The postings that are part of this blog has_many 'blogPosts' do extract Mida::SchemaOrg::BlogPosting extract Mida::DataType::Text end end end end
Version data entries
4 entries across 4 versions & 1 rubygems