Sha256: b3582bcadb5fdb4a0f6ec993312c4b474c5f6eabde67949646c82e7c61cdeabe
Contents?: true
Size: 1.27 KB
Versions: 4
Compression:
Stored size: 1.27 KB
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization' autoload :MusicAlbum, 'mida_vocabulary/vocabularies/schemaorg/musicalbum' autoload :Person, 'mida_vocabulary/vocabularies/schemaorg/person' autoload :MusicRecording, 'mida_vocabulary/vocabularies/schemaorg/musicrecording' # A musical group, such as a band, an orchestra, or a choir. Can also be a solo musician. class MusicGroup < Mida::Vocabulary itemtype %r{http://schema.org/MusicGroup}i include_vocabulary Mida::SchemaOrg::Thing include_vocabulary Mida::SchemaOrg::Organization # A collection of music albums. has_many 'albums' do extract Mida::SchemaOrg::MusicAlbum extract Mida::DataType::Text end # A member of the music group - for example, John, Paul, George, or Ringo. has_many 'musicGroupMember' do extract Mida::SchemaOrg::Person extract Mida::DataType::Text end # A music recording (track) - usually a single song. has_many 'tracks' do extract Mida::SchemaOrg::MusicRecording extract Mida::DataType::Text end end end end
Version data entries
4 entries across 4 versions & 1 rubygems