lib/mida_vocabulary/vocabularies/schemaorg/reservationpackage.rb in mida_vocabulary-0.2 vs lib/mida_vocabulary/vocabularies/schemaorg/reservationpackage.rb in mida_vocabulary-0.2.2
- old
+ new
@@ -9,9 +9,15 @@
# A group of multiple reservations with common values for all sub-reservations.
class ReservationPackage < Mida::Vocabulary
itemtype %r{http://schema.org/ReservationPackage}i
include_vocabulary Mida::SchemaOrg::Reservation
include_vocabulary Mida::SchemaOrg::Thing
+
+ # The individual reservations included in the package. Typically a repeated property.
+ has_many 'subReservation' do
+ extract Mida::SchemaOrg::Reservation
+ extract Mida::DataType::Text
+ end
end
end
end