Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5d0ebe006a
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.335 kb
class LastFM < FeedItem
attr_accessor :streamable, :mbid
def name=(song_name)
self.song = song_name
end
def url=(path)
self.link = path
end
before_save do |item|
item.guid = "#{item.artist}/#{item.album}/#{item.song}/#{item.published_at.to_s}"
item.description = item.link
item.valid?
end
end
Jump to Line
Something went wrong with that request. Please try again.