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.
252 253 254 |
# File 'lib/webmock/http_lib_adapters/httpclient_adapter.rb', line 252 def initialize(headers) @header = headers end |
Instance Attribute Details
#header ⇒ Object (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 |