class Transferwise::TransferwiseError
Attributes
http_body[R]
http_headers[R]
http_status[R]
json_body[R]
message[R]
Public Class Methods
new(params = {})
click to toggle source
# File lib/transferwise/transferwise_error.rb, line 12 def initialize(params = {}) params.each do |key, value| instance_variable_set("@#{key}", value) end end
Public Instance Methods
to_s()
click to toggle source
# File lib/transferwise/transferwise_error.rb, line 18 def to_s status_string = @http_status.nil? ? "" : "(Status #{@http_status}) " "#{status_string}#{@message}" end