Exception: Payoneer::Errors::UnexpectedResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/payoneer/errors/unexpected_response_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_status = nil, http_body = nil) ⇒ UnexpectedResponseError

Returns a new instance of UnexpectedResponseError.



7
8
9
10
# File 'lib/payoneer/errors/unexpected_response_error.rb', line 7

def initialize(http_status = nil, http_body = nil)
  @http_status = http_status
  @http_body = http_body
end

Instance Attribute Details

#http_bodyObject (readonly)

Returns the value of attribute http_body.



5
6
7
# File 'lib/payoneer/errors/unexpected_response_error.rb', line 5

def http_body
  @http_body
end

#http_statusObject (readonly)

Returns the value of attribute http_status.



4
5
6
# File 'lib/payoneer/errors/unexpected_response_error.rb', line 4

def http_status
  @http_status
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/payoneer/errors/unexpected_response_error.rb', line 12

def to_s
  "(Status #{http_status}) Unexpected http response code"
end