Class: Buckaroo::StatusResponse
- Defined in:
- lib/buckaroo/response.rb
Instance Attribute Summary
Attributes inherited from Response
Instance Method Summary collapse
Methods inherited from Response
#initialize, #success?, #test?, #verified?
Constructor Details
This class inherits a constructor from Buckaroo::Response
Instance Method Details
#status ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/buckaroo/response.rb', line 81 def status case @status_code when 190 then 'success' when 490..690 then 'failure' when 790..793 then 'open' when 890..891 then 'cancelled' else raise(Exception) end end |