Sha256: 7a5f7f9f04e63ecc3e0270b5a74e0bfa553cec8133cd0db28aba477ba491b2bb
Contents?: true
Size: 716 Bytes
Versions: 4
Compression:
Stored size: 716 Bytes
Contents
module Coltrane module UI module Views class CustomProgression < BaseView questions({ progression_notation: { statement: 'What is the progression? (Ex: I-vi-IV-V)' }, representation: { statement: 'How do you wanna see the chords?', options: Commands::AvailableChordRepresentations.run }, key: { statement: 'What is the key?' }, }) def render chords = Commands::GetChordsFromProgression.run(*params.values_at(:progression_notation, :key)) Commands::GetRepresentationChords.run(params[:representation], chords) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems