Class: Coltrane::UI::Views::CustomProgression

Inherits:
View
  • Object
show all
Defined in:
lib/coltrane/ui/views/custom_progression.rb

Instance Attribute Summary

Attributes inherited from View

#params, #path

Instance Method Summary collapse

Methods inherited from View

#ensure_param, #go_to, inherited, #initialize, #output, questions, render, set_path

Constructor Details

This class inherits a constructor from Coltrane::UI::Views::View

Instance Method Details

#renderObject



20
21
22
23
# File 'lib/coltrane/ui/views/custom_progression.rb', line 20

def render
  chords = Commands::GetChordsFromProgression.run(*params.values_at(:progression_notation, :key))
  Commands::GetRepresentationChords.run(params[:representation], chords)
end