Sha256: 49967d847605fb5fd28a39220746f833ef7660d70d7885b24118e6c1f249a5d9

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

# -*- encoding: utf-8 -*-

module MusicBrainz
  class Track < Base

    field :position, Integer
    field :recording_id, String
    field :title, String
    field :length, Integer

    class << self
      def find(mbid)
        load({
          :parser => :track_model,
          :create_model => MusicBrainz::Track
        }, {
          :resource => :recording,
          :id => mbid
        })
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
musicbrainz-0.7.1 lib/musicbrainz/track.rb
musicbrainz-0.7.0 lib/musicbrainz/track.rb