Class: MockResponse

Inherits:
Object show all
Includes:
RestClient::Mixin::Response
Defined in:
lib/rest-client-1.2.0/spec/mixin/response_spec.rb

Instance Attribute Summary

Attributes included from RestClient::Mixin::Response

#net_http_res

Instance Method Summary collapse

Methods included from RestClient::Mixin::Response

#code, #cookies, #headers, included, #raw_headers

Constructor Details

#initialize(body, res) ⇒ MockResponse

Returns a new instance of MockResponse.



6
7
8
9
# File 'lib/rest-client-1.2.0/spec/mixin/response_spec.rb', line 6

def initialize(body, res)
  @net_http_res = res
  @body = @body
end