Sha256: 6cc239a292a4413bd3748755a910fd299cb878c672e25d5652e71a6b6b44c72d

Contents?: true

Size: 409 Bytes

Versions: 4

Compression:

Stored size: 409 Bytes

Contents

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

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

      for field in %w{street-address locality region postal-code country-name}
        has_many field
      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/address.rb
mida_vocabulary-0.2 lib/mida_vocabulary/vocabularies/data_vocabulary/address.rb
mida_vocabulary-0.1.3 lib/mida_vocabulary/vocabularies/data_vocabulary/address.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/data_vocabulary/address.rb