Class: ShellDataReportingApIs::FleetmanagementV1TransactionPricedtransactions403ErrorException
- Inherits:
-
APIException
- Object
- CoreLibrary::ApiException
- APIException
- ShellDataReportingApIs::FleetmanagementV1TransactionPricedtransactions403ErrorException
- Defined in:
- lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactions403_error_exception.rb
Overview
Fleetmanagement V1 Transaction Pricedtransactions 403 Error class.
Instance Attribute Summary collapse
-
#error ⇒ ErrorUserAccessError
TODO: Write general description for this method.
Instance Method Summary collapse
-
#initialize(reason, response) ⇒ FleetmanagementV1TransactionPricedtransactions403ErrorException
constructor
The constructor.
-
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash.
Constructor Details
#initialize(reason, response) ⇒ FleetmanagementV1TransactionPricedtransactions403ErrorException
The constructor.
19 20 21 22 23 |
# File 'lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactions403_error_exception.rb', line 19 def initialize(reason, response) super(reason, response) hash = APIHelper.json_deserialize(@response.raw_body) unbox(hash) end |
Instance Attribute Details
#error ⇒ ErrorUserAccessError
TODO: Write general description for this method
14 15 16 |
# File 'lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactions403_error_exception.rb', line 14 def error @error end |
Instance Method Details
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash. response body.
28 29 30 |
# File 'lib/shell_data_reporting_ap_is/exceptions/fleetmanagement_v1_transaction_pricedtransactions403_error_exception.rb', line 28 def unbox(hash) @error = ErrorUserAccessError.from_hash(hash['Error']) if hash['Error'] end |