Class: Spotify::Models::TrackLink

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ TrackLink

Sets the arguments to its variables.

Parameters:

  • args (Hash) (defaults to: {})

    the arguments that will be placed on each variable.



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/spotify/models/track_link.rb', line 16

def initialize(args = {})
  args = Hash(args).with_indifferent_access

  # Objects
  external_urls = Spotify::Models::ExternalURL.new(args[:external_urls])

  @external_urls = external_urls
  @href          = args[:href]
  @id            = args[:id]
  @type          = args[:type]
  @uri           = args[:uri]
end

Instance Attribute Details

#external_urlsObject (readonly)

Returns the value of attribute external_urls.



7
8
9
# File 'lib/spotify/models/track_link.rb', line 7

def external_urls
  @external_urls
end

#hrefObject (readonly)

Returns the value of attribute href.



7
8
9
# File 'lib/spotify/models/track_link.rb', line 7

def href
  @href
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/spotify/models/track_link.rb', line 7

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/spotify/models/track_link.rb', line 7

def type
  @type
end

#uriObject (readonly)

Returns the value of attribute uri.



7
8
9
# File 'lib/spotify/models/track_link.rb', line 7

def uri
  @uri
end