Sha256: 962bc3df1734b71def52c7d6c102f3239121be7561faf94cf9c77e691941c943

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 KB

Contents

# frozen_string_literal: true

# #Medical Network Professional Claims v3
#
# Reference for developers
#
# OpenAPI spec version: v3
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
# Swagger Codegen version: 2.4.19
#

module ChangeHealthcare
  module ProfessionalClaims
    module SwaggerClient
      class ApiError < StandardError
        attr_reader :code, :response_headers, :response_body

        # Usage examples:
        #   ApiError.new
        #   ApiError.new("message")
        #   ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
        #   ApiError.new(:code => 404, :message => "Not Found")
        def initialize(arg = nil)
          if arg.is_a? Hash
            if arg.key?(:message) || arg.key?('message')
              super(arg[:message] || arg['message'])
            else
              super arg
            end

            arg.each do |k, v|
              instance_variable_set "@#{k}", v
            end
          else
            super arg
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
change_healthcare-professional_claims-0.6.1 lib/change_healthcare/professional_claims/swagger_client/api_error.rb
change_healthcare-professional_claims-0.6.0 lib/change_healthcare/professional_claims/swagger_client/api_error.rb
change_healthcare-professional_claims-0.5.0 lib/change_healthcare/professional_claims/swagger_client/api_error.rb
change_healthcare-professional_claims-0.4.0 lib/change_healthcare/professional_claims/swagger_client/api_error.rb
change_healthcare-professional_claims-0.3.0 lib/change_healthcare/professional_claims/swagger_client/api_error.rb
change_healthcare-professional_claims-0.2.0 lib/change_healthcare/professional_claims/swagger_client/api_error.rb
change_healthcare-professional_claims-0.1.0 lib/change_healthcare/professional_claims/swagger_client/api_error.rb