lib/musicbrainz/models/release.rb in musicbrainz-0.7.3 vs lib/musicbrainz/models/release.rb in musicbrainz-0.7.4

- old
+ new

@@ -1,24 +1,28 @@ module MusicBrainz class Release < BaseModel field :id, String + field :type, String field :title, String field :status, String field :format, String field :date, Date field :country, String - + field :asin, String + field :barcode, String + field :quality, String + def tracks @tracks ||= client.load(:release, { id: id, inc: [:recordings, :media], limit: 100 }, { binding: :release_tracks, create_models: :track, sort: :position }) unless @id.nil? end class << self def find(id) - client.load(:release, { id: id, inc: [:media] }, { + client.load(:release, { id: id, inc: [:media, :release_groups] }, { binding: :release, create_model: :release }) end end