Class: GetFx
- Inherits:
-
Object
- Object
- GetFx
- Defined in:
- lib/getFx.rb
Defined Under Namespace
Classes: Parser
Class Method Summary collapse
Class Method Details
.run(*params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/getFx.rb', line 4 def self.run(*params) puts params if params args = params[0] else args = [] end curr = "USD" if args[0] curr = args[0] end date = "2017-02-28" if args[1] date = args[1] end amt = 1 if args[2] amt = args[2] end parser = Parser.new(curr, date, amt) return parser.run end |