lib/openactive/models/opening_hours_specification.rb in openactive-0.1.2 vs lib/openactive/models/opening_hours_specification.rb in openactive-0.2.0
- old
+ new
@@ -1,8 +1,8 @@
module OpenActive
module Models
- # This type is derived from [OpeningHoursSpecification](https://schema.org/OpeningHoursSpecification), 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://schema.org/OpeningHoursSpecification, which means that any of this type's properties within schema.org may also be used.
class OpeningHoursSpecification < ::OpenActive::Models::Schema::OpeningHoursSpecification
# @!attribute type
# @return [String]
def type
"OpeningHoursSpecification"
@@ -12,18 +12,30 @@
define_property :closes, as: "closes", types: [
"Time",
"null",
]
- # @return [OpenActive::Enums::Schema::DayOfWeek,nil]
+ # @return [Array<OpenActive::Enums::Schema::DayOfWeek>,nil]
define_property :day_of_week, as: "dayOfWeek", types: [
- "OpenActive::Enums::Schema::DayOfWeek",
+ "OpenActive::Enums::Schema::DayOfWeek[]",
"null",
]
# @return [Time,nil]
define_property :opens, as: "opens", types: [
"Time",
+ "null",
+ ]
+
+ # @return [Date,nil]
+ define_property :valid_from, as: "validFrom", types: [
+ "Date",
+ "null",
+ ]
+
+ # @return [Date,nil]
+ define_property :valid_through, as: "validThrough", types: [
+ "Date",
"null",
]
end
end
end