Sha256: 05dce6366954fd2a357059bfd22958f8a6a62342716b851514e069440fadda6e

Contents?: true

Size: 898 Bytes

Versions: 1

Compression:

Stored size: 898 Bytes

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :PeopleAudience, 'mida_vocabulary/vocabularies/schemaorg/peopleaudience'
    autoload :Audience, 'mida_vocabulary/vocabularies/schemaorg/audience'
    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'

    # A set of characteristics describing parents, who can be interested in viewing some content
    class ParentAudience < Mida::Vocabulary
      itemtype %r{http://schema.org/ParentAudience}i
      include_vocabulary Mida::SchemaOrg::PeopleAudience
      include_vocabulary Mida::SchemaOrg::Audience
      include_vocabulary Mida::SchemaOrg::Thing

      # Maximal age of the child
      has_many 'childMaxAge' do
        extract Mida::DataType::Number
      end

      # Minimal age of the child
      has_many 'childMinAge' do
        extract Mida::DataType::Number
      end
    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/parentaudience.rb