Sha256: e99a2a34cbab0176e93efb9fed17666fb3995abf813400942e9f3dc89d44999a

Contents?: true

Size: 421 Bytes

Versions: 4

Compression:

Stored size: 421 Bytes

Contents

require 'mida_vocabulary/vocabulary'
require 'mida_vocabulary/vocabularies/data_vocabulary/item'

module Mida
  module DataVocabulary
    class Breadcrumb < Mida::Vocabulary
      itemtype %r{http://data-vocabulary.org/Breadcrumb}i
      include_vocabulary Mida::DataVocabulary::Item

      has_many 'title'
      has_many('url') { extract Mida::DataType::URL }
      has_many('child') { extract self }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mida_vocabulary-0.2.2 lib/mida_vocabulary/vocabularies/data_vocabulary/breadcrumb.rb
mida_vocabulary-0.2 lib/mida_vocabulary/vocabularies/data_vocabulary/breadcrumb.rb
mida_vocabulary-0.1.3 lib/mida_vocabulary/vocabularies/data_vocabulary/breadcrumb.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/data_vocabulary/breadcrumb.rb