class Decent::ListHodling
Public Class Methods
execute(args)
click to toggle source
# File lib/decent/command/hodling/list_hodling.rb, line 3 def self.execute(args) hodlings = Database[:holdings] hodlings.each do |hodling| nickname = hodling[:nickname] balance = hodling[:balance] currency = hodling[:currency] updated_at = hodling[:updated_at] puts "#{nickname} has a balance of #{balance} #{currency} as of #{updated_at}." end end