Class: StubSocket

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

Overview

:nodoc:

Defined Under Namespace

Classes: StubIO

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ StubSocket

Returns a new instance of StubSocket.


242
243
# File 'lib/webmock/http_lib_adapters/net_http.rb', line 242

def initialize(*args)
end

Instance Attribute Details

#continue_timeoutObject

Returns the value of attribute continue_timeout


240
241
242
# File 'lib/webmock/http_lib_adapters/net_http.rb', line 240

def continue_timeout
  @continue_timeout
end

#read_timeoutObject

Returns the value of attribute read_timeout


240
241
242
# File 'lib/webmock/http_lib_adapters/net_http.rb', line 240

def read_timeout
  @read_timeout
end

#write_timeoutObject

Returns the value of attribute write_timeout


240
241
242
# File 'lib/webmock/http_lib_adapters/net_http.rb', line 240

def write_timeout
  @write_timeout
end

Instance Method Details

#closeObject


249
250
# File 'lib/webmock/http_lib_adapters/net_http.rb', line 249

def close
end

#closed?Boolean

Returns:

  • (Boolean)

245
246
247
# File 'lib/webmock/http_lib_adapters/net_http.rb', line 245

def closed?
  @closed ||= true
end

#ioObject


255
256
257
# File 'lib/webmock/http_lib_adapters/net_http.rb', line 255

def io
  @io ||= StubIO.new
end

#readuntil(*args) ⇒ Object


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

def readuntil(*args)
end