Module: EventStore::HTTP::NetHTTP::Extensions::IPAddress
- Defined in:
- lib/event_store/http/net_http/extensions.rb
Instance Method Summary collapse
Instance Method Details
#ip_address ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/event_store/http/net_http/extensions.rb', line 26 def ip_address if @socket.instance_of? Net::BufferedIO socket = @socket.io remote_address = socket.remote_address remote_address.ip_address else nil end end |