Class: Chid::Commands::Currency::List
- Inherits:
-
Chid::Command
- Object
- Chid::Command
- Chid::Commands::Currency::List
- Defined in:
- lib/chid/commands/currency/list.rb
Constant Summary
Constants inherited from Chid::Command
Instance Attribute Summary
Attributes inherited from Chid::Command
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
#run ⇒ Object
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 |