Module: EventStore::HTTP::Connect::NetHTTP::Assertions
- Defined in:
- lib/event_store/http/connect/net_http.rb
Instance Method Summary collapse
Instance Method Details
#closed? ⇒ Boolean
18 19 20 |
# File 'lib/event_store/http/connect/net_http.rb', line 18 def closed? not active? end |
#connected?(ip_address: nil, port: nil) ⇒ Boolean
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/event_store/http/connect/net_http.rb', line 6 def connected?(ip_address: nil, port: nil) unless ip_address.nil? || ip_address == self.address return false end unless port.nil? || port == self.port return false end active? end |