Exception: Cryptopay::ClientError

Inherits:
Error
  • Object
show all
Defined in:
lib/cryptopay/errors.rb

Class Method Summary collapse

Class Method Details

.from_response(res) ⇒ Object



16
17
18
# File 'lib/cryptopay/errors.rb', line 16

def self.from_response(res)
  new("Status #{res.status}: #{res.body}")
end