Class: Fintecture::ApiException
- Inherits:
-
Object
- Object
- Fintecture::ApiException
- Defined in:
- lib/fintecture/exceptions.rb
Class Method Summary collapse
Class Method Details
.error(res) ⇒ Object
12 13 14 15 16 |
# File 'lib/fintecture/exceptions.rb', line 12 def error(res) body = JSON.parse res.body raise (res.status, body) end |