lib/mida_vocabulary/vocabularies/schemaorg/joinaction.rb in mida_vocabulary-0.2 vs lib/mida_vocabulary/vocabularies/schemaorg/joinaction.rb in mida_vocabulary-0.2.2
- old
+ new
@@ -3,15 +3,22 @@
module Mida
module SchemaOrg
autoload :Action, 'mida_vocabulary/vocabularies/schemaorg/action'
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
+ autoload :Event, 'mida_vocabulary/vocabularies/schemaorg/event'
# An agent joins an event/group with participants/friends at a location.Related actions:RegisterAction: Unlike RegisterAction, JoinAction refers to joining a group/team of people.SubscribeAction: Unlike SubscribeAction, JoinAction does not imply that you'll be receiving updates.FollowAction: Unlike FollowAction, JoinAction does not imply that you'll be polling for updates.
class JoinAction < Mida::Vocabulary
itemtype %r{http://schema.org/JoinAction}i
include_vocabulary Mida::SchemaOrg::Action
include_vocabulary Mida::SchemaOrg::Thing
+
+ # Upcoming or past event associated with this place or organization. Supercedes events.
+ has_many 'event' do
+ extract Mida::SchemaOrg::Event
+ extract Mida::DataType::Text
+ end
end
end
end