Exception: NzPostApi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- NzPostApi::Error
- Defined in:
- lib/nz_post_api.rb,
sig/nz_post_api.rbs
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#response_http_code ⇒ Integer?
readonly
Returns the value of attribute response_http_code.
Instance Method Summary collapse
-
#initialize(message = nil, response_http_code: nil, response_body: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, response_http_code: nil, response_body: nil) ⇒ Error
Returns a new instance of Error.
21 22 23 24 25 |
# File 'lib/nz_post_api.rb', line 21 def initialize( = nil, response_http_code: nil, response_body: nil) @response_http_code = response_http_code @response_body = response_body super() end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
19 20 21 |
# File 'lib/nz_post_api.rb', line 19 def response_body @response_body end |
#response_http_code ⇒ Integer? (readonly)
Returns the value of attribute response_http_code.
19 20 21 |
# File 'lib/nz_post_api.rb', line 19 def response_http_code @response_http_code end |