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
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/exrt/cli.rb', line 22 def history base = ["base"] symbols = ["symbols"] response = Exrt::Rate.history( base: base, symbols: symbols, start_at: ["start_at"], end_at: ["end_at"] ) puts response end |
#latest ⇒ Object
12 13 14 15 16 17 |
# File 'lib/exrt/cli.rb', line 12 def latest base = ["base"] symbols = ["symbols"] response = Exrt::Rate.latest(base: base, symbols: symbols) puts response end |