Class: RSpotify::TrackLink

Inherits:
Object
  • Object
show all
Defined in:
lib/rspotify/track_link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @external_urls = options['external_urls']
  @href          = options['href']
  @id            = options['id']
  @type          = options['type']
  @uri           = options['uri']
end

Instance Attribute Details

#external_urlsHash

Known external URLs for this playlist

Returns:

  • (Hash)

    the current value of external_urls



8
9
10
# File 'lib/rspotify/track_link.rb', line 8

def external_urls
  @external_urls
end

#hrefString

A link to the Web API endpoint

Returns:

  • (String)

    the current value of href



8
9
10
# File 'lib/rspotify/track_link.rb', line 8

def href
  @href
end

#idString

The Spotify ID for the track

Returns:

  • (String)

    the current value of id



8
9
10
# File 'lib/rspotify/track_link.rb', line 8

def id
  @id
end

#typeString

The object type: “track”

Returns:

  • (String)

    the current value of type



8
9
10
# File 'lib/rspotify/track_link.rb', line 8

def type
  @type
end

#uriString

The Spotify URI for the object

Returns:

  • (String)

    the current value of uri



8
9
10
# File 'lib/rspotify/track_link.rb', line 8

def uri
  @uri
end