Sha256: 6eac6d16f1e38b6a1d48b333d0621eb537899888c25471414fcd818208231cc6

Contents?: true

Size: 560 Bytes

Versions: 4

Compression:

Stored size: 560 Bytes

Contents

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

module Mida
  module DataVocabulary
    autoload :Geo, 'mida_vocabulary/vocabularies/data_vocabulary/geo'

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

      for field in %w{name url tel}
        has_many field
      end

      has_many 'geo' do
        extract Mida::DataVocabulary::Geo
        extract Mida::DataType::Text
      end
    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/organization.rb
mida_vocabulary-0.2 lib/mida_vocabulary/vocabularies/data_vocabulary/organization.rb
mida_vocabulary-0.1.3 lib/mida_vocabulary/vocabularies/data_vocabulary/organization.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/data_vocabulary/organization.rb