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.



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

def initialize(headers)
  @header = headers
end

Instance Attribute Details

#headerObject (readonly)

Returns the value of attribute header.



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

def header
  @header
end

Instance Method Details

#http_version=(value) ⇒ Object



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

def http_version=(value);end