Sha256: 7aedc1c7d5f78c82d09ee8ca07adcf1a7dcd3f972ca304e3fa5ef25e5198b46c

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

module OpenActive
  module Models
    module Schema
      class MusicRelease < ::OpenActive::Models::Schema::MusicPlaylist
        # @!attribute type
        # @return [String]
        def type
          "schema:MusicRelease"
        end

        # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI]
        define_property :credited_to, as: "creditedTo", types: [
          "OpenActive::Models::Schema::Organization",
          "OpenActive::Models::Schema::Person",
          "URI",
        ]

        # @return [String]
        define_property :catalog_number, as: "catalogNumber", types: [
          "string",
        ]

        # @return [OpenActive::Enums::Schema::MusicReleaseFormatType,nil]
        define_property :music_release_format, as: "musicReleaseFormat", types: [
          "OpenActive::Enums::Schema::MusicReleaseFormatType",
          "null",
        ]

        # @return [ActiveSupport::Duration,URI,nil]
        define_property :duration, as: "duration", types: [
          "DateInterval",
          "URI",
          "null",
        ]

        # @return [OpenActive::Models::Schema::Organization,URI]
        define_property :record_label, as: "recordLabel", types: [
          "OpenActive::Models::Schema::Organization",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::MusicAlbum,URI]
        define_property :release_of, as: "releaseOf", types: [
          "OpenActive::Models::Schema::MusicAlbum",
          "URI",
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/schema/music_release.rb
openactive-0.4.0 lib/openactive/models/schema/music_release.rb