Class: MidiLyrics::Tempo
- Inherits:
-
Object
- Object
- MidiLyrics::Tempo
- Defined in:
- lib/midi_lyrics.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#start ⇒ Object
Returns the value of attribute start.
-
#tempo ⇒ Object
Returns the value of attribute tempo.
Instance Method Summary collapse
-
#initialize(fields = {}) ⇒ Tempo
constructor
A new instance of Tempo.
Constructor Details
#initialize(fields = {}) ⇒ Tempo
Returns a new instance of Tempo.
10 11 12 13 |
# File 'lib/midi_lyrics.rb', line 10 def initialize(fields = {}) self.start = fields[:start].to_f self.tempo = fields[:tempo].to_f end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
8 9 10 |
# File 'lib/midi_lyrics.rb', line 8 def duration @duration end |
#start ⇒ Object
Returns the value of attribute start.
8 9 10 |
# File 'lib/midi_lyrics.rb', line 8 def start @start end |
#tempo ⇒ Object
Returns the value of attribute tempo.
8 9 10 |
# File 'lib/midi_lyrics.rb', line 8 def tempo @tempo end |