Class: Spotify::Song

Inherits:
Object
  • Object
show all
Defined in:
lib/spotifysearch/song.rb

Overview

Create a Song object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data: nil) ⇒ Song

Returns a new instance of Song.



6
7
8
# File 'lib/spotifysearch/song.rb', line 6

def initialize(data: nil)
  load_data(data)
end

Instance Attribute Details

#album_nameObject

Returns the value of attribute album_name.



4
5
6
# File 'lib/spotifysearch/song.rb', line 4

def album_name
  @album_name
end

#artist_nameObject

Returns the value of attribute artist_name.



4
5
6
# File 'lib/spotifysearch/song.rb', line 4

def artist_name
  @artist_name
end

#imgsObject

Returns the value of attribute imgs.



4
5
6
# File 'lib/spotifysearch/song.rb', line 4

def imgs
  @imgs
end

Returns the value of attribute track_link.



4
5
6
# File 'lib/spotifysearch/song.rb', line 4

def track_link
  @track_link
end

#track_nameObject

Returns the value of attribute track_name.



4
5
6
# File 'lib/spotifysearch/song.rb', line 4

def track_name
  @track_name
end