Sha256: f2fde0a07a890ffeb11a5731d0eac2a20098ea438d535575ce7d371a60d47d4e

Contents?: true

Size: 1001 Bytes

Versions: 1

Compression:

Stored size: 1001 Bytes

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :UpdateAction, 'mida_vocabulary/vocabularies/schemaorg/updateaction'
    autoload :Action, 'mida_vocabulary/vocabularies/schemaorg/action'
    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'

    # The act of editing a recipient by replacing an old object with a new object.
    class ReplaceAction < Mida::Vocabulary
      itemtype %r{http://schema.org/ReplaceAction}i
      include_vocabulary Mida::SchemaOrg::UpdateAction
      include_vocabulary Mida::SchemaOrg::Action
      include_vocabulary Mida::SchemaOrg::Thing

      # A sub property of object. The object that is being replaced.
      has_many 'replacee' do
        extract Mida::SchemaOrg::Thing
        extract Mida::DataType::Text
      end

      # A sub property of object. The object that replaces.
      has_many 'replacer' do
        extract Mida::SchemaOrg::Thing
        extract Mida::DataType::Text
      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/replaceaction.rb