Module: Fet::Cli::Score::Summary

Defined in:
lib/fet/cli/score/summary.rb

Overview

CLI implementation for the “score summary” command

Class Method Summary collapse

Class Method Details

.run(_global_options, options, _args) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/fet/cli/score/summary.rb', line 8

def self.run(_global_options, options, _args)
  Fet::ScoreSummary.new(
    minimum_session_length: options[:seconds],
    number_of_degrees: options[:degrees],
    key_type: options[:"key-type"],
    begin_offset: options[:"begin-offset"],
    end_offset: options[:"end-offset"],
  ).summary
end