Class: Decent::ExchangeRate

Inherits:
Object
  • Object
show all
Defined in:
lib/decent/command/exchange_rate/exchange_rate.rb

Class Method Summary collapse

Class Method Details

.execute(args) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/decent/command/exchange_rate/exchange_rate.rb', line 3

def self.execute(args)
  command  = args.first
  commands = {
    "list"   => ListExchangeRate,
    "update" => UpdateExchangeRate
  }

  commands[command].execute
end