1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00
mpd-client/models/song.rb
2013-12-10 15:15:45 +00:00

13 lines
322 B
Ruby

class Song < Struct.new(:id, :artist, :album, :title, :length, :pos, :playing)
def initialize(song, pos: nil, playing: false)
self.id = song.id
self.artist = song.artist
self.album = song.album
self.title = song.title
self.length = song.time
self.pos = pos
self.playing = playing
end
end