Method: Azure::Core::Http::HttpResponse::MockResponse#initialize

Defined in:
lib/azure/core/http/http_response.rb

#initialize(code, body, headers) ⇒ MockResponse

Returns a new instance of MockResponse.



83
84
85
86
87
88
89
90
# File 'lib/azure/core/http/http_response.rb', line 83

def initialize(code, body, headers)
  @status = code
  @body = body
  @headers = headers
  @headers.each { |k,v|
    @headers[k] = [v] unless v.respond_to? 'first'
  }
end