Class: Verokrypto::Cli::ProcessCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/verokrypto/cli/process_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/verokrypto/cli/process_command.rb', line 9

def execute
  source = case source_name
           when 'coinex'
             Verokrypto::Coinex.from_xlsx(path)
           else
             raise "Unknown '#{source_name}'"
           end

  Verokrypto::Helpers.print_fees(source.fees)
end