lib/openactive/models/schema/how_to_direction.rb in openactive-0.1.2 vs lib/openactive/models/schema/how_to_direction.rb in openactive-0.2.0
- old
+ new
@@ -1,54 +1,59 @@
module OpenActive
module Models
module Schema
- class HowToDirection < ::OpenActive::Models::Schema::CreativeWork
+ class HowToDirection < ::OpenActive::Models::Schema::ListItem
# @!attribute type
# @return [String]
def type
"schema:HowToDirection"
end
- # @return [String,OpenActive::Models::Schema::HowToTool]
- define_property :tool, as: "tool", types: [
+ # @return [OpenActive::Models::Schema::HowToSupply,String,URI]
+ define_property :supply, as: "supply", types: [
+ "OpenActive::Models::Schema::HowToSupply",
"string",
- "OpenActive::Models::Schema::HowToTool",
+ "URI",
]
# @return [OpenActive::Models::Schema::MediaObject,URI]
define_property :after_media, as: "afterMedia", types: [
"OpenActive::Models::Schema::MediaObject",
"URI",
]
- # @return [OpenActive::Models::Schema::HowToSupply,String]
- define_property :supply, as: "supply", types: [
- "OpenActive::Models::Schema::HowToSupply",
- "string",
+ # @return [OpenActive::Models::Schema::MediaObject,URI]
+ define_property :before_media, as: "beforeMedia", types: [
+ "OpenActive::Models::Schema::MediaObject",
+ "URI",
]
- # @return [ActiveSupport::Duration,nil]
- define_property :total_time, as: "totalTime", types: [
+ # @return [ActiveSupport::Duration,URI,nil]
+ define_property :perform_time, as: "performTime", types: [
"DateInterval",
+ "URI",
"null",
]
- # @return [ActiveSupport::Duration,nil]
- define_property :perform_time, as: "performTime", types: [
+ # @return [ActiveSupport::Duration,URI,nil]
+ define_property :total_time, as: "totalTime", types: [
"DateInterval",
+ "URI",
"null",
]
- # @return [ActiveSupport::Duration,nil]
- define_property :prep_time, as: "prepTime", types: [
- "DateInterval",
- "null",
+ # @return [String,OpenActive::Models::Schema::HowToTool,URI]
+ define_property :tool, as: "tool", types: [
+ "string",
+ "OpenActive::Models::Schema::HowToTool",
+ "URI",
]
- # @return [URI,OpenActive::Models::Schema::MediaObject]
- define_property :before_media, as: "beforeMedia", types: [
+ # @return [ActiveSupport::Duration,URI,nil]
+ define_property :prep_time, as: "prepTime", types: [
+ "DateInterval",
"URI",
- "OpenActive::Models::Schema::MediaObject",
+ "null",
]
# @return [URI,OpenActive::Models::Schema::MediaObject]
define_property :during_media, as: "duringMedia", types: [
"URI",