class CompareCrypto::CLI

Public Class Methods

new() click to toggle source
# File lib/compare-crypto/cli.rb, line 3
def initialize
  source = 'BTC'
  target = 'USD'
  @gateway = CompareCrypto::Gateway.new({source: source, target: target})
end

Public Instance Methods

get_price() click to toggle source
# File lib/compare-crypto/cli.rb, line 9
def get_price
  @gateway.get_price
end