Class: HookTheory::Song
- Inherits:
-
Object
- Object
- HookTheory::Song
- Defined in:
- lib/hooktheory/song.rb
Instance Attribute Summary collapse
-
#artist ⇒ Object
readonly
Returns the value of attribute artist.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
-
#song ⇒ Object
readonly
Returns the value of attribute song.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Song
constructor
A new instance of Song.
Constructor Details
#initialize(options = {}) ⇒ Song
Returns a new instance of Song.
4 5 6 7 8 9 |
# File 'lib/hooktheory/song.rb', line 4 def initialize( = {}) @artist = ["artist"] @song = ["song"] @section = ["section"] @url = ["url"] end |
Instance Attribute Details
#artist ⇒ Object (readonly)
Returns the value of attribute artist.
3 4 5 |
# File 'lib/hooktheory/song.rb', line 3 def artist @artist end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
3 4 5 |
# File 'lib/hooktheory/song.rb', line 3 def section @section end |
#song ⇒ Object (readonly)
Returns the value of attribute song.
3 4 5 |
# File 'lib/hooktheory/song.rb', line 3 def song @song end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/hooktheory/song.rb', line 3 def url @url end |