Method: Billogram::Error.from_response

Defined in:
lib/billogram/error.rb

.from_response(response) ⇒ Object



11
12
13
14
# File 'lib/billogram/error.rb', line 11

def from_response(response)
  message = response["data"]["message"]
  error_class(response).new(message)
end