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.
235 236 237 |
# File 'lib/webmock/http_lib_adapters/httpclient_adapter.rb', line 235 def initialize(headers) @header = headers end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
233 234 235 |
# File 'lib/webmock/http_lib_adapters/httpclient_adapter.rb', line 233 def header @header end |
Instance Method Details
#http_version=(value) ⇒ Object
239 |
# File 'lib/webmock/http_lib_adapters/httpclient_adapter.rb', line 239 def http_version=(value);end |