Class MusicBrainz::Model::ReleaseEvent
In: lib/rbrainz/model/release_event.rb
Parent: Object

A release event in the MusicBrainz DB indicating where and when a release took place.

All country codes used must be valid ISO-3166 country codes (i.e. ‘DE’, ‘UK’ or ‘FR’). The dates are instances of IncompleteDate or strings which must have the format ‘YYYY’, ‘YYYY-MM’ or ‘YYYY-MM-DD’.

The format of the release medium is a URI that can be compared to the constants on this class (FORMAT_CD, FORMAT_DVD and others).

See:musicbrainz.org/doc/ReleaseEvent.

Methods

date=   new  

Constants

FORMAT_CD = NS_MMD_1 + 'CD'
FORMAT_DVD = NS_MMD_1 + 'DVD'
FORMAT_SACD = NS_MMD_1 + 'SACD'
FORMAT_DUALDISC = NS_MMD_1 + 'DualDisc'
FORMAT_LASERDISC = NS_MMD_1 + 'LaserDisc'
FORMAT_MINIDISC = NS_MMD_1 + 'MiniDisc'
FORMAT_VINYL = NS_MMD_1 + 'Vinyl'
FORMAT_CASSETTE = NS_MMD_1 + 'Cassette'
FORMAT_CARTRIDGE = NS_MMD_1 + 'Cartridge'
FORMAT_REEL_TO_REEL = NS_MMD_1 + 'ReelToReel'
FORMAT_DAT = NS_MMD_1 + 'DAT'
FORMAT_DIGITAL = NS_MMD_1 + 'Digital'
FORMAT_WAX_CYLINDER = NS_MMD_1 + 'WaxCylinder'
FORMAT_PIANO_ROLL = NS_MMD_1 + 'PianoRoll'
FORMAT_DCC = NS_MMD_1 + 'DCC'
FORMAT_OTHER = NS_MMD_1 + 'Other'

Attributes

barcode  [RW]  The barcode as it is printed on the release.
catalog_number  [RW]  The catalog number given to the release by the label.
country  [RW]  The country in which an album was released. A string containing a ISO 3166 country code like ‘GB’, ‘US’ or ‘DE’.
See:Utils#get_country_name
See:musicbrainz.org/doc/ReleaseCountry
date  [R]  The release date. An instance of IncompleteDate.
format  [RW]  The media format of the release (e.g. CD or Vinyl).
label  [RW]  The label issuing the release.

Public Class methods

Public Instance methods

Set the date the release took place.

Should be an IncompleteDate object or a date string, which will get converted into an IncompleteDate.

[Validate]