struct Scrobbly::SongInfo

Defined in:

scrobbly/song_info.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def ==(other : SongInfo) #

[View source]
def album : String | Nil #

def album_artist : String | Nil #

def artist : String #

def clone #

[View source]
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) #

[View source]
def duration : Time::Span | Nil #

def mbid : String | Nil #

def timestamp : Time #

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.


[View source]
def track : String #

def track_number : Int32 | Nil #