Class: Artifice::Passthru::RequestInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/artifice-passthru/core.rb

Overview

Simple class for storing information about the last #request that was made, allowing us to recreate the request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address, port, req, body, block) ⇒ RequestInfo

Returns a new instance of RequestInfo.



26
27
28
29
30
31
32
# File 'lib/artifice-passthru/core.rb', line 26

def initialize address, port, req, body, block
  self.address = address
  self.port    = port
  self.request = req
  self.body    = body
  self.block   = block
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



24
25
26
# File 'lib/artifice-passthru/core.rb', line 24

def address
  @address
end

#blockObject

Returns the value of attribute block.



24
25
26
# File 'lib/artifice-passthru/core.rb', line 24

def block
  @block
end

#bodyObject

Returns the value of attribute body.



24
25
26
# File 'lib/artifice-passthru/core.rb', line 24

def body
  @body
end

#portObject

Returns the value of attribute port.



24
25
26
# File 'lib/artifice-passthru/core.rb', line 24

def port
  @port
end

#requestObject

Returns the value of attribute request.



24
25
26
# File 'lib/artifice-passthru/core.rb', line 24

def request
  @request
end