Sha256: 949b2191a58627cfc9502e205f3037a96aeaabf2076a18b99a86a44a6bf532b5

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

module OpenActive
  module Models
    # This type is derived from https://schema.org/MediaObject, which means that any of this type's properties within schema.org may also be used.
    class MediaObject < ::OpenActive::Models::Schema::MediaObject
      # @!attribute type
      # @return [String]
      def type
        "MediaObject"
      end

      # @return [URI]
      define_property :content_url, as: "contentUrl", types: [
        "URI",
      ]

      # @return [URI]
      define_property :embed_url, as: "embedUrl", types: [
        "URI",
      ]

      # @return [int,nil]
      define_property :height, as: "height", types: [
        "int",
        "null",
      ]

      # @return [Array<OpenActive::Models::ImageObject>]
      define_property :thumbnail, as: "thumbnail", types: [
        "OpenActive::Models::ImageObject[]",
      ]

      # @return [URI]
      define_property :url, as: "url", types: [
        "URI",
      ]

      # @return [int,nil]
      define_property :width, as: "width", types: [
        "int",
        "null",
      ]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/media_object.rb
openactive-0.4.0 lib/openactive/models/media_object.rb
openactive-0.3.0 lib/openactive/models/media_object.rb
openactive-0.2.2 lib/openactive/models/media_object.rb
openactive-0.2.1 lib/openactive/models/media_object.rb
openactive-0.2.0 lib/openactive/models/media_object.rb