Class: MsRestAzure::CloudErrorData
- Inherits:
-
Object
- Object
- MsRestAzure::CloudErrorData
- Defined in:
- lib/ms_rest_azure/cloud_error_data.rb
Overview
Class which represents keeps aux data about Azure invalid response.
Instance Attribute Summary collapse
-
#code ⇒ String
The error code parsed from the body of the http error response.
-
#message ⇒ String
The error message parsed from the body of the http error response.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ CloudErrorData
Deserializes given hash into CloudErrorData object.
Instance Attribute Details
#code ⇒ String
Returns the error code parsed from the body of the http error response.
12 13 14 |
# File 'lib/ms_rest_azure/cloud_error_data.rb', line 12 def code @code end |
#message ⇒ String
Returns the error message parsed from the body of the http error response.
15 16 17 |
# File 'lib/ms_rest_azure/cloud_error_data.rb', line 15 def @message end |
Class Method Details
.deserialize_object(object) ⇒ CloudErrorData
Deserializes given hash into CloudErrorData object.
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/ms_rest_azure/cloud_error_data.rb', line 22 def self.deserialize_object(object) return if object.nil? output_object = CloudErrorData.new output_object.code = object['code'] output_object. = object['message'] output_object end |