pedrozath/coltrane

View on GitHub
lib/coltrane/ui/views/find_progressions_from_chords.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Coltrane
  module UI
    module Views
      class FindProgressionsFromChords < BaseView
        questions chords: { statement: 'Type the chords? (Ex: CM EM GM)' }

        def render
          chords = Commands::GetChordsFromString.run(params[:chords])
          Commands::FindProgressionsFromChords.run(*chords)
        end
      end
    end
  end
end