lib/openactive/models/event_series.rb in openactive-0.1.2 vs lib/openactive/models/event_series.rb in openactive-0.2.0
- old
+ new
@@ -1,12 +1,26 @@
module OpenActive
module Models
- # This type is derived from [EventSeries](https://pending.schema.org/EventSeries), which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.
+ # This type is derived from https://pending.schema.org/EventSeries.
class EventSeries < ::OpenActive::Models::Event
# @!attribute type
# @return [String]
def type
"EventSeries"
end
+
+ # @return [Date,DateTime,nil]
+ define_property :start_date, as: "startDate", types: [
+ "Date",
+ "DateTime",
+ "null",
+ ]
+
+ # @return [Date,DateTime,nil]
+ define_property :end_date, as: "endDate", types: [
+ "Date",
+ "DateTime",
+ "null",
+ ]
end
end
end