Class: Spotify::Song
- Inherits:
-
Object
- Object
- Spotify::Song
- Defined in:
- lib/spotifysearch/song.rb
Overview
Create a Song object
Instance Attribute Summary collapse
-
#album_name ⇒ Object
Returns the value of attribute album_name.
-
#artist_name ⇒ Object
Returns the value of attribute artist_name.
-
#imgs ⇒ Object
Returns the value of attribute imgs.
-
#track_link ⇒ Object
Returns the value of attribute track_link.
-
#track_name ⇒ Object
Returns the value of attribute track_name.
Instance Method Summary collapse
-
#initialize(data: nil) ⇒ Song
constructor
A new instance of Song.
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_name ⇒ Object
Returns the value of attribute album_name.
4 5 6 |
# File 'lib/spotifysearch/song.rb', line 4 def album_name @album_name end |
#artist_name ⇒ Object
Returns the value of attribute artist_name.
4 5 6 |
# File 'lib/spotifysearch/song.rb', line 4 def artist_name @artist_name end |
#imgs ⇒ Object
Returns the value of attribute imgs.
4 5 6 |
# File 'lib/spotifysearch/song.rb', line 4 def imgs @imgs end |
#track_link ⇒ Object
Returns the value of attribute track_link.
4 5 6 |
# File 'lib/spotifysearch/song.rb', line 4 def track_link @track_link end |
#track_name ⇒ Object
Returns the value of attribute track_name.
4 5 6 |
# File 'lib/spotifysearch/song.rb', line 4 def track_name @track_name end |