class Azure::Core::Http::HttpResponse::MockResponse
Attributes
body[RW]
code[RW]
headers[RW]
Public Class Methods
new(code, body, headers)
click to toggle source
# File lib/azure/core/http/http_response.rb, line 121 def initialize(code, body, headers) @code = code.to_s @body = body @headers = headers @headers.each { |k,v| @headers[k] = [v] unless v.respond_to? first } end
Public Instance Methods
to_hash()
click to toggle source
# File lib/azure/core/http/http_response.rb, line 133 def to_hash @headers end