Sha256: 4b20d1a0175b9e3357c27b6ad4234893d05eabcd1bb0f85c60185f153f706694
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :TradeAction, 'mida_vocabulary/vocabularies/schemaorg/tradeaction' autoload :Action, 'mida_vocabulary/vocabularies/schemaorg/action' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' autoload :MedicalDevicePurpose, 'mida_vocabulary/vocabularies/schemaorg/medicaldevicepurpose' autoload :Audience, 'mida_vocabulary/vocabularies/schemaorg/audience' autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization' autoload :Person, 'mida_vocabulary/vocabularies/schemaorg/person' # An agent pays a price to a participant. class PayAction < Mida::Vocabulary itemtype %r{http://schema.org/PayAction}i include_vocabulary Mida::SchemaOrg::TradeAction include_vocabulary Mida::SchemaOrg::Action include_vocabulary Mida::SchemaOrg::Thing # A goal towards an action is taken. Can be concrete or abstract. has_many 'purpose' do extract Mida::SchemaOrg::MedicalDevicePurpose extract Mida::SchemaOrg::Thing extract Mida::DataType::Text end # 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mida_vocabulary-0.2.2 | lib/mida_vocabulary/vocabularies/schemaorg/payaction.rb |