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

- old
+ new

@@ -4,16 +4,23 @@ module SchemaOrg autoload :MoveAction, 'mida_vocabulary/vocabularies/schemaorg/moveaction' autoload :Action, 'mida_vocabulary/vocabularies/schemaorg/action' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' + autoload :Distance, 'mida_vocabulary/vocabularies/schemaorg/distance' # The act of traveling from an fromLocation to a destination by a specified mode of transport, optionally with participants. class TravelAction < Mida::Vocabulary itemtype %r{http://schema.org/TravelAction}i include_vocabulary Mida::SchemaOrg::MoveAction include_vocabulary Mida::SchemaOrg::Action include_vocabulary Mida::SchemaOrg::Thing + + # The distance travelled, e.g. exercising or travelling. + has_many 'distance' do + extract Mida::SchemaOrg::Distance + extract Mida::DataType::Text + end end end end