object @jam_track

attributes :id, :name, :original_artist, :year, :genre_name, :can_download, :original_artist_slug, :name_slug

node :purchased_at do |jt|
 Time.parse(jt.purchased_at).to_i rescue Time.now.to_i
end

node :can_download do |item|
  !!item.right_for_user(current_user, ShoppingCart::JAMTRACK_FULL)
end