Class: Samuel::LogEntries::Base
- Inherits:
-
Object
- Object
- Samuel::LogEntries::Base
- Defined in:
- lib/samuel/log_entries/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(http, request, response, time_requested, time_responded) ⇒ Base
constructor
A new instance of Base.
- #log! ⇒ Object
Constructor Details
#initialize(http, request, response, time_requested, time_responded) ⇒ Base
Returns a new instance of Base.
4 5 6 7 |
# File 'lib/samuel/log_entries/base.rb', line 4 def initialize(http, request, response, time_requested, time_responded) @http, @request, @response = http, request, response @seconds = time_responded - time_requested end |