Class: Musk::Track

Inherits:
Object
  • Object
show all
Defined in:
lib/musk/track.rb

Constant Summary collapse

ATTRIBUTES =
[
  :loadpath,
  :fullpath,
  :title,
  :position_number,
  :positions_count,
  :artist,
  :release,
  :genre,
  :year,
  :comment,
]

Instance Method Summary collapse

Instance Method Details

#attributesObject



18
19
20
# File 'lib/musk/track.rb', line 18

def attributes
  Hash[ATTRIBUTES.map { |a| [a, send("#{a}")] }]
end