Class: Zold::Balance
- Inherits:
-
Object
- Object
- Zold::Balance
- Defined in:
- lib/zold/commands/balance.rb
Overview
Balance checking command
Instance Method Summary collapse
-
#initialize(wallet:, log: Log::Quiet.new) ⇒ Balance
constructor
A new instance of Balance.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
35 36 37 38 39 |
# File 'lib/zold/commands/balance.rb', line 35 def run balance = @wallet.balance @log.info("The balance of #{@wallet} is #{balance}") balance end |