class Hodlmoon::Cli
Constants
- CURRENCY
- DEFAULT_LIMIT
Public Instance Methods
hello(name)
click to toggle source
# File lib/hodlmoon/cli.rb, line 17 def hello(name) puts "Hello #{name}" end
list(limit = DEFAULT_LIMIT, currency = 'gbp')
click to toggle source
# File lib/hodlmoon/cli.rb, line 28 def list(limit = DEFAULT_LIMIT, currency = 'gbp') info = Hodlmoon::Client::RetrieveList.call(limit, currency) puts Hodlmoon::Table.build(info, currency) end
price(coin, currency = 'gbp')
click to toggle source
# File lib/hodlmoon/cli.rb, line 22 def price(coin, currency = 'gbp') info = Hodlmoon::Client::RetrievePrice.call(coin, currency) puts Hodlmoon::Table.build(info, currency) end