Class: Spotify::Models::TrackLink
- Inherits:
-
Object
- Object
- Spotify::Models::TrackLink
- Defined in:
- lib/spotify/models/track_link.rb
Instance Attribute Summary collapse
-
#external_urls ⇒ Object
readonly
Returns the value of attribute external_urls.
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ TrackLink
constructor
Sets the arguments to its variables.
Constructor Details
#initialize(args = {}) ⇒ TrackLink
Sets the arguments to its variables.
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_urls ⇒ Object (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 |
#href ⇒ Object (readonly)
Returns the value of attribute href.
7 8 9 |
# File 'lib/spotify/models/track_link.rb', line 7 def href @href end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/spotify/models/track_link.rb', line 7 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/spotify/models/track_link.rb', line 7 def type @type end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
7 8 9 |
# File 'lib/spotify/models/track_link.rb', line 7 def uri @uri end |