Sha256: ba350088150f2f4b2a5e3b4985ea6aaf3f0d7758e87633e7aec8d18f9fbc5ca0
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :ContactPoint, 'mida_vocabulary/vocabularies/schemaorg/contactpoint' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' autoload :Country, 'mida_vocabulary/vocabularies/schemaorg/country' # The mailing address. class PostalAddress < Mida::Vocabulary itemtype %r{http://schema.org/PostalAddress}i include_vocabulary Mida::SchemaOrg::ContactPoint include_vocabulary Mida::SchemaOrg::Thing # The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code. has_many 'addressCountry' do extract Mida::SchemaOrg::Country extract Mida::DataType::Text end # The locality. For example, Mountain View. has_many 'addressLocality' # The region. For example, CA. has_many 'addressRegion' # The post office box number for PO box addresses. has_many 'postOfficeBoxNumber' # The postal code. For example, 94043. has_many 'postalCode' # The street address. For example, 1600 Amphitheatre Pkwy. has_many 'streetAddress' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mida_vocabulary-0.2.2 | lib/mida_vocabulary/vocabularies/schemaorg/postaladdress.rb |