Class: Exrt::Cli::CLI
- Inherits:
-
Thor
- Object
- Thor
- Exrt::Cli::CLI
- Defined in:
- lib/exrt/cli.rb
Instance Method Summary collapse
Instance Method Details
#history ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/exrt/cli.rb', line 24 def history base = ["base"] symbols = ["symbols"] response = Exrt::Rate.history( base: base, symbols: symbols, start_at: ["start_at"], end_at: ["end_at"] ) r = Exrt::Cli::Renderer.new(d: response, t: Exrt::Cli::HISTORY) puts r.render end |