Class: RSpotify::TrackLink
- Inherits:
-
Object
- Object
- RSpotify::TrackLink
- Defined in:
- lib/rspotify/track_link.rb
Instance Attribute Summary collapse
-
#external_urls ⇒ Hash
Known external URLs for this playlist.
-
#href ⇒ String
A link to the Web API endpoint.
-
#id ⇒ String
The Spotify ID for the track.
-
#type ⇒ String
The object type: “track”.
-
#uri ⇒ String
The Spotify URI for the object.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TrackLink
constructor
A new instance of TrackLink.
Constructor Details
#initialize(options = {}) ⇒ TrackLink
Returns a new instance of TrackLink.
11 12 13 14 15 16 17 |
# File 'lib/rspotify/track_link.rb', line 11 def initialize( = {}) @external_urls = ['external_urls'] @href = ['href'] @id = ['id'] @type = ['type'] @uri = ['uri'] end |
Instance Attribute Details
#external_urls ⇒ Hash
Known external URLs for this playlist
8 9 10 |
# File 'lib/rspotify/track_link.rb', line 8 def external_urls @external_urls end |
#href ⇒ String
A link to the Web API endpoint
8 9 10 |
# File 'lib/rspotify/track_link.rb', line 8 def href @href end |
#id ⇒ String
The Spotify ID for the track
8 9 10 |
# File 'lib/rspotify/track_link.rb', line 8 def id @id end |
#type ⇒ String
The object type: “track”
8 9 10 |
# File 'lib/rspotify/track_link.rb', line 8 def type @type end |
#uri ⇒ String
The Spotify URI for the object
8 9 10 |
# File 'lib/rspotify/track_link.rb', line 8 def uri @uri end |