Class: Puppeteer::Response::RemoteAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip:, port:) ⇒ RemoteAddress

Returns a new instance of RemoteAddress.



24
25
26
27
# File 'lib/puppeteer/response.rb', line 24

def initialize(ip:, port:)
  @ip = ip
  @port = port
end

Instance Attribute Details

#ipObject (readonly)

Returns the value of attribute ip.



28
29
30
# File 'lib/puppeteer/response.rb', line 28

def ip
  @ip
end

#portObject (readonly)

Returns the value of attribute port.



28
29
30
# File 'lib/puppeteer/response.rb', line 28

def port
  @port
end