Sha256: ad4874aa3ee4c584e1986a2d4e163030b8fb67693dcb7eeea68f42bb83508cf3

Contents?: true

Size: 339 Bytes

Versions: 4

Compression:

Stored size: 339 Bytes

Contents

module MusicBrainz
  class Track < BaseModel
    field :position, Integer
    field :recording_id, String
    field :title, String
    field :length, Integer

    class << self
      def find(id)
        client.load(:recording, { id: id }, {
          binding: :track,
          create_model: :track
        })
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
musicbrainz-0.8.0 lib/musicbrainz/models/track.rb
musicbrainz-0.7.4 lib/musicbrainz/models/track.rb
musicbrainz-0.7.3 lib/musicbrainz/models/track.rb
musicbrainz-0.7.2 lib/musicbrainz/models/track.rb