Class: Whuffiebank::Balance

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/whuffiebank/balance.rb

Overview

According to the Whuffiebank API doc: www.thewhuffiebank.org/static/api

Instance Method Summary collapse

Instance Method Details

#to_sObject



16
17
18
19
20
21
22
# File 'lib/whuffiebank/balance.rb', line 16

def to_s
  if result.eql? 'success'
    "Whuffiebank Balance: #{result}, #{balance}"  
  else
    "Whuffiebank Balance: #{result}, #{reason}"
  end
end