Class: HookTheory::Song

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @artist = options["artist"]
  @song = options["song"]
  @section = options["section"]
  @url = options["url"]
end

Instance Attribute Details

#artistObject (readonly)

Returns the value of attribute artist.



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

def artist
  @artist
end

#sectionObject (readonly)

Returns the value of attribute section.



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

def section
  @section
end

#songObject (readonly)

Returns the value of attribute song.



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

def song
  @song
end

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end