Class: MessageMock
- Inherits:
-
Object
- Object
- MessageMock
- Defined in:
- lib/webmock/http_lib_adapters/httpclient_adapter.rb
Overview
Mocks a HTTPClient HTTP::Message
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
- #http_version=(value) ⇒ Object
-
#initialize(headers) ⇒ MessageMock
constructor
A new instance of MessageMock.
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
#header ⇒ Object (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 |