mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
13 lines
322 B
Ruby
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
|