Class: MessageMock

Inherits:
Object
  • Object
show all
Defined in:
lib/webmock/http_lib_adapters/httpclient_adapter.rb

Overview

Mocks a HTTPClient HTTP::Message

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers) ⇒ MessageMock

Returns a new instance of MessageMock.



253
254
255
# File 'lib/webmock/http_lib_adapters/httpclient_adapter.rb', line 253

def initialize(headers)
  @header = headers
end

Instance Attribute Details

#headerObject (readonly)

Returns the value of attribute header.



251
252
253
# File 'lib/webmock/http_lib_adapters/httpclient_adapter.rb', line 251

def header
  @header
end

Instance Method Details

#http_version=(value) ⇒ Object



257
# File 'lib/webmock/http_lib_adapters/httpclient_adapter.rb', line 257

def http_version=(value);end