class Cryptopay::Error
Public Class Methods
from_response(res)
click to toggle source
# File lib/cryptopay/errors.rb, line 5 def self.from_response(res) case res.status when 400..499 ClientError.from_response(res) when 500..599 ServerError.from_response(res) end end