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

- old
+ new

@@ -4,16 +4,27 @@ module SchemaOrg autoload :TradeAction, 'mida_vocabulary/vocabularies/schemaorg/tradeaction' autoload :Action, 'mida_vocabulary/vocabularies/schemaorg/action' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' + autoload :Audience, 'mida_vocabulary/vocabularies/schemaorg/audience' + autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization' + autoload :Person, 'mida_vocabulary/vocabularies/schemaorg/person' # The act of providing goods, services, or money without compensation, often for philanthropic reasons. class DonateAction < Mida::Vocabulary itemtype %r{http://schema.org/DonateAction}i include_vocabulary Mida::SchemaOrg::TradeAction include_vocabulary Mida::SchemaOrg::Action include_vocabulary Mida::SchemaOrg::Thing + + # A sub property of participant. The participant who is at the receiving end of the action. + has_many 'recipient' do + extract Mida::SchemaOrg::Audience + extract Mida::SchemaOrg::Organization + extract Mida::SchemaOrg::Person + extract Mida::DataType::Text + end end end end