Class: BlueConductor::Song

Inherits:
Object
  • Object
show all
Defined in:
lib/blue_conductor/song.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#albumObject

Returns the value of attribute album.



3
4
5
# File 'lib/blue_conductor/song.rb', line 3

def album
  @album
end

#bandObject

Returns the value of attribute band.



3
4
5
# File 'lib/blue_conductor/song.rb', line 3

def band
  @band
end

#lyricsObject

Returns the value of attribute lyrics.



3
4
5
# File 'lib/blue_conductor/song.rb', line 3

def lyrics
  @lyrics
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/blue_conductor/song.rb', line 3

def title
  @title
end