lib/mida_vocabulary/vocabularies/schemaorg/lendaction.rb in mida_vocabulary-0.2 vs lib/mida_vocabulary/vocabularies/schemaorg/lendaction.rb in mida_vocabulary-0.2.2

- old
+ new

@@ -4,16 +4,23 @@ module SchemaOrg autoload :TransferAction, 'mida_vocabulary/vocabularies/schemaorg/transferaction' autoload :Action, 'mida_vocabulary/vocabularies/schemaorg/action' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' + autoload :Person, 'mida_vocabulary/vocabularies/schemaorg/person' # The act of providing an object under an agreement that it will be returned at a later date. Reciprocal of BorrowAction.Related actions:BorrowAction: Reciprocal of LendAction. class LendAction < Mida::Vocabulary itemtype %r{http://schema.org/LendAction}i include_vocabulary Mida::SchemaOrg::TransferAction include_vocabulary Mida::SchemaOrg::Action include_vocabulary Mida::SchemaOrg::Thing + + # A sub property of participant. The person that borrows the object being lent. + has_many 'borrower' do + extract Mida::SchemaOrg::Person + extract Mida::DataType::Text + end end end end