struct Scrobbly::SongInfo
- Scrobbly::SongInfo
- Struct
- Value
- Object
Defined in:
scrobbly/song_info.crConstructors
Instance Method Summary
- #==(other : SongInfo)
- #album : String | Nil
- #album_artist : String | Nil
- #artist : String
- #clone
- #copy_with(artist _artist = @artist, track _track = @track, timestamp _timestamp = @timestamp, album _album = @album, track_number _track_number = @track_number, mbid _mbid = @mbid, album_artist _album_artist = @album_artist, duration _duration = @duration)
- #duration : Time::Span | Nil
- #mbid : String | Nil
- #timestamp : Time
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #track : String
- #track_number : Int32 | Nil
Constructor Detail
def self.new(artist : String, track : String, timestamp : Time = Time.now, album : String | Nil = nil, track_number : Int32 | Nil = nil, mbid : String | Nil = nil, album_artist : String | Nil = nil, duration : Time::Span | Nil = nil)
#
Instance Method Detail
def copy_with(artist _artist = @artist, track _track = @track, timestamp _timestamp = @timestamp, album _album = @album, track_number _track_number = @track_number, mbid _mbid = @mbid, album_artist _album_artist = @album_artist, duration _duration = @duration)
#
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.