Class: BlueConductor::Song
- Inherits:
-
Object
- Object
- BlueConductor::Song
- Defined in:
- lib/blue_conductor/song.rb
Instance Attribute Summary collapse
-
#album ⇒ Object
Returns the value of attribute album.
-
#band ⇒ Object
Returns the value of attribute band.
-
#lyrics ⇒ Object
Returns the value of attribute lyrics.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(manager) ⇒ Song
constructor
A new instance of Song.
Constructor Details
#initialize(manager) ⇒ Song
Returns a new instance of Song.
5 6 7 8 9 10 |
# File 'lib/blue_conductor/song.rb', line 5 def initialize(manager) @title = manager.song @band = manager.band @album = manager.album @lyrics = manager.data end |
Instance Attribute Details
#album ⇒ Object
Returns the value of attribute album.
3 4 5 |
# File 'lib/blue_conductor/song.rb', line 3 def album @album end |
#band ⇒ Object
Returns the value of attribute band.
3 4 5 |
# File 'lib/blue_conductor/song.rb', line 3 def band @band end |
#lyrics ⇒ Object
Returns the value of attribute lyrics.
3 4 5 |
# File 'lib/blue_conductor/song.rb', line 3 def lyrics @lyrics end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/blue_conductor/song.rb', line 3 def title @title end |