Class: Atatus::Context::Request::Socket Private

Inherits:
Object
  • Object
show all
Defined in:
lib/atatus/context/request/socket.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(req) ⇒ Socket

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Socket.



27
28
29
# File 'lib/atatus/context/request/socket.rb', line 27

def initialize(req)
  @remote_addr = req.env['REMOTE_ADDR']
end

Instance Attribute Details

#remote_addrObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
# File 'lib/atatus/context/request/socket.rb', line 31

def remote_addr
  @remote_addr
end