Class: Computron::Report::Request
- Inherits:
-
Object
- Object
- Computron::Report::Request
- Defined in:
- lib/computron/report.rb
Defined Under Namespace
Classes: Response
Instance Attribute Summary collapse
-
#at ⇒ Object
Returns the value of attribute at.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#response {|@response| ... } ⇒ Object
Returns the value of attribute response.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
- #duration ⇒ Object
-
#initialize {|_self| ... } ⇒ Request
constructor
A new instance of Request.
Constructor Details
Instance Attribute Details
#at ⇒ Object
Returns the value of attribute at.
11 12 13 |
# File 'lib/computron/report.rb', line 11 def at @at end |
#headers ⇒ Object
Returns the value of attribute headers.
11 12 13 |
# File 'lib/computron/report.rb', line 11 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method.
11 12 13 |
# File 'lib/computron/report.rb', line 11 def method @method end |
#response {|@response| ... } ⇒ Object
Returns the value of attribute response.
11 12 13 |
# File 'lib/computron/report.rb', line 11 def response @response end |
#uri ⇒ Object
Returns the value of attribute uri.
11 12 13 |
# File 'lib/computron/report.rb', line 11 def uri @uri end |
Instance Method Details
#duration ⇒ Object
18 19 20 |
# File 'lib/computron/report.rb', line 18 def duration @duration ||= response.at.to_f - at.to_f if at and response.at end |