Class: Siilar::Struct::Track
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#id ⇒ Object
Returns the value of attribute id.
-
#isrc ⇒ Object
Returns the value of attribute isrc.
-
#popularity ⇒ Object
Returns the value of attribute popularity.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#title ⇒ Object
Returns the value of attribute title.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Siilar::Struct::Base
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/siilar/struct/track.rb', line 5 def created_at @created_at end |
#duration ⇒ Object
Returns the value of attribute duration.
5 6 7 |
# File 'lib/siilar/struct/track.rb', line 5 def duration @duration end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/siilar/struct/track.rb', line 5 def id @id end |
#isrc ⇒ Object
Returns the value of attribute isrc.
5 6 7 |
# File 'lib/siilar/struct/track.rb', line 5 def isrc @isrc end |
#popularity ⇒ Object
Returns the value of attribute popularity.
5 6 7 |
# File 'lib/siilar/struct/track.rb', line 5 def popularity @popularity end |
#reference ⇒ Object
Returns the value of attribute reference.
5 6 7 |
# File 'lib/siilar/struct/track.rb', line 5 def reference @reference end |
#tags ⇒ Object
Returns the value of attribute tags.
5 6 7 |
# File 'lib/siilar/struct/track.rb', line 5 def @tags end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/siilar/struct/track.rb', line 5 def title @title end |
#year ⇒ Object
Returns the value of attribute year.
5 6 7 |
# File 'lib/siilar/struct/track.rb', line 5 def year @year end |
Instance Method Details
#album ⇒ Object
7 8 9 |
# File 'lib/siilar/struct/track.rb', line 7 def album @album ||= {} end |
#album=(attrs) ⇒ Object
11 12 13 14 15 |
# File 'lib/siilar/struct/track.rb', line 11 def album=(attrs) if attrs @album = Struct::Album.new(attrs) end end |
#artist ⇒ Object
17 18 19 |
# File 'lib/siilar/struct/track.rb', line 17 def artist @artist ||= {} end |