Class: Artifice::Passthru::RequestInfo
- Inherits:
-
Object
- Object
- Artifice::Passthru::RequestInfo
- 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
-
#address ⇒ Object
Returns the value of attribute address.
-
#block ⇒ Object
Returns the value of attribute block.
-
#body ⇒ Object
Returns the value of attribute body.
-
#port ⇒ Object
Returns the value of attribute port.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(address, port, req, body, block) ⇒ RequestInfo
constructor
A new instance of RequestInfo.
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
#address ⇒ Object
Returns the value of attribute address.
24 25 26 |
# File 'lib/artifice-passthru/core.rb', line 24 def address @address end |
#block ⇒ Object
Returns the value of attribute block.
24 25 26 |
# File 'lib/artifice-passthru/core.rb', line 24 def block @block end |
#body ⇒ Object
Returns the value of attribute body.
24 25 26 |
# File 'lib/artifice-passthru/core.rb', line 24 def body @body end |
#port ⇒ Object
Returns the value of attribute port.
24 25 26 |
# File 'lib/artifice-passthru/core.rb', line 24 def port @port end |
#request ⇒ Object
Returns the value of attribute request.
24 25 26 |
# File 'lib/artifice-passthru/core.rb', line 24 def request @request end |