lib/openactive/models/image_object.rb in openactive-0.1.2 vs lib/openactive/models/image_object.rb in openactive-0.2.0
- old
+ new
@@ -1,13 +1,23 @@
module OpenActive
module Models
- # This type is derived from [ImageObject](https://schema.org/ImageObject), 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.
- class ImageObject < ::OpenActive::Models::Schema::ImageObject
+ # This type is derived from https://schema.org/ImageObject, which means that any of this type's properties within schema.org may also be used.
+ class ImageObject < ::OpenActive::Models::MediaObject
# @!attribute type
# @return [String]
def type
"ImageObject"
end
+
+ # @return [URI]
+ define_property :content_url, as: "contentUrl", types: [
+ "URI",
+ ]
+
+ # @return [URI]
+ define_property :embed_url, as: "embedUrl", types: [
+ "URI",
+ ]
# @return [Array<OpenActive::Models::ImageObject>]
define_property :thumbnail, as: "thumbnail", types: [
"OpenActive::Models::ImageObject[]",
]