Sha256: 9a29c351492a09ed51a1ad4d67814147faa528a2e327ce7c9d0ad7ae8cc0d879

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

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

        # @return [String]
        define_property :isrc_code, as: "isrcCode", types: [
          "string",
        ]

        # @return [OpenActive::Models::Schema::MusicPlaylist,URI]
        define_property :in_playlist, as: "inPlaylist", types: [
          "OpenActive::Models::Schema::MusicPlaylist",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::MusicAlbum,URI]
        define_property :in_album, as: "inAlbum", types: [
          "OpenActive::Models::Schema::MusicAlbum",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::MusicComposition,URI]
        define_property :recording_of, as: "recordingOf", types: [
          "OpenActive::Models::Schema::MusicComposition",
          "URI",
        ]

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

        # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::MusicGroup,URI]
        define_property :by_artist, as: "byArtist", types: [
          "OpenActive::Models::Schema::Person",
          "OpenActive::Models::Schema::MusicGroup",
          "URI",
        ]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openactive-0.3.0 lib/openactive/models/schema/music_recording.rb