Exception: TAPI::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/tapi/v3/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#request_urlObject

Returns the value of attribute request_url.



4
5
6
# File 'lib/tapi/v3/errors.rb', line 4

def request_url
  @request_url
end

#response_bodyObject

Returns the value of attribute response_body.



4
5
6
# File 'lib/tapi/v3/errors.rb', line 4

def response_body
  @response_body
end

#response_codeObject

Returns the value of attribute response_code.



4
5
6
# File 'lib/tapi/v3/errors.rb', line 4

def response_code
  @response_code
end

Instance Method Details

#to_sObject



6
7
8
# File 'lib/tapi/v3/errors.rb', line 6

def to_s
  "Status code: #{response_code}\nRequest url: #{request_url}\n\n\n#{response_body}"
end