Class: Whuffiebank::Whuffie

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#to_sObject



17
18
19
20
21
22
23
24
# File 'lib/whuffiebank/whuffie.rb', line 17

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