Class: Chid::Commands::Currency::List

Inherits:
Chid::Command show all
Defined in:
lib/chid/commands/currency/list.rb

Constant Summary

Constants inherited from Chid::Command

Chid::Command::COMMANDS

Instance Attribute Summary

Attributes inherited from Chid::Command

#options

Instance Method Summary collapse

Methods inherited from Chid::Command

command, help, #initialize, map_options_with_values, run

Constructor Details

This class inherits a constructor from Chid::Command

Instance Method Details

#runObject



26
27
28
29
30
# File 'lib/chid/commands/currency/list.rb', line 26

def run
  types = CurrencyApi::SOURCES
  puts "Types available:\n\n"
  types.each { |k, v| puts "#{k} => #{v}"}
end