Exception: PostalCodesRubyClient::ApiError
- Defined in:
- lib/postal_codes_ruby_client/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, body: nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message, status:, body: nil) ⇒ ApiError
Returns a new instance of ApiError.
20 21 22 23 24 |
# File 'lib/postal_codes_ruby_client/errors.rb', line 20 def initialize(, status:, body: nil) @status = status @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
18 19 20 |
# File 'lib/postal_codes_ruby_client/errors.rb', line 18 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
18 19 20 |
# File 'lib/postal_codes_ruby_client/errors.rb', line 18 def status @status end |