Class: UntitledApi::ApiV1Self400ErrorException
- Inherits:
-
APIException
- Object
- CoreLibrary::ApiException
- APIException
- UntitledApi::ApiV1Self400ErrorException
- Defined in:
- lib/untitled_api/exceptions/api_v1_self400_error_exception.rb
Overview
Api V1 Self 400 Error class.
Instance Attribute Summary collapse
-
#detail ⇒ Object
TODO: Write general description for this method.
-
#org_id ⇒ Object
TODO: Write general description for this method.
Instance Method Summary collapse
-
#initialize(reason, response) ⇒ ApiV1Self400ErrorException
constructor
The constructor.
-
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash.
Constructor Details
#initialize(reason, response) ⇒ ApiV1Self400ErrorException
The constructor.
23 24 25 26 27 |
# File 'lib/untitled_api/exceptions/api_v1_self400_error_exception.rb', line 23 def initialize(reason, response) super(reason, response) hash = APIHelper.json_deserialize(@response.raw_body) unbox(hash) end |
Instance Attribute Details
#detail ⇒ Object
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/exceptions/api_v1_self400_error_exception.rb', line 14 def detail @detail end |
#org_id ⇒ Object
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/exceptions/api_v1_self400_error_exception.rb', line 18 def org_id @org_id end |
Instance Method Details
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash. response body.
32 33 34 35 |
# File 'lib/untitled_api/exceptions/api_v1_self400_error_exception.rb', line 32 def unbox(hash) @detail = hash.key?('detail') ? hash['detail'] : SKIP @org_id = hash.key?('org_id') ? hash['org_id'] : SKIP end |