Class: Whuffiebank::Whuffie
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Whuffiebank::Whuffie
- 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_s ⇒ Object
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 |