Sha256: b85ee45f41101048a8226fbe12cc0cfe876a2a6fc0ebfb5ad96f1cdf3c73a00f

Contents?: true

Size: 913 Bytes

Versions: 5

Compression:

Stored size: 913 Bytes

Contents

# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

module MsRestAzure
  #
  # Class which represents the error type and information.
  #
  class TypedErrorInfo

    # @return [String] the error type parsed from the body of the http error response.
    attr_accessor :type

    # @return [Object] the error info parsed from the body of the http error response.
    attr_accessor :info

    #
    # Deserializes given hash into TypedErrorInfo object.
    # @param object [Hash] object to deserialize.
    #
    # @return [TypedErrorInfo] deserialized object.
    def self.deserialize_object(object)
      return if object.nil?
      output_object = TypedErrorInfo.new

      output_object.type = object['type']

      output_object.info = object['info']

      output_object
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ms_rest_azure2-0.12.1 lib/ms_rest_azure/typed_error_info.rb
ms_rest_azure2-0.12.0 lib/ms_rest_azure/typed_error_info.rb
ms_rest_azure-0.12.0 lib/ms_rest_azure/typed_error_info.rb
ms_rest_azure-0.11.2 lib/ms_rest_azure/typed_error_info.rb
ms_rest_azure-0.11.1 lib/ms_rest_azure/typed_error_info.rb