Class: Rack::Timeout::RequestDetails
- Inherits:
-
Struct
- Object
- Struct
- Rack::Timeout::RequestDetails
- Defined in:
- lib/rack/timeout/core.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#service ⇒ Object
Returns the value of attribute service.
-
#state ⇒ Object
Returns the value of attribute state.
-
#term ⇒ Object
Returns the value of attribute term.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#wait ⇒ Object
Returns the value of attribute wait.
Instance Method Summary collapse
-
#ms(k) ⇒ Object
helper method used for formatting values in milliseconds.
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
27 28 29 |
# File 'lib/rack/timeout/core.rb', line 27 def id @id end |
#service ⇒ Object
Returns the value of attribute service
27 28 29 |
# File 'lib/rack/timeout/core.rb', line 27 def service @service end |
#state ⇒ Object
Returns the value of attribute state
27 28 29 |
# File 'lib/rack/timeout/core.rb', line 27 def state @state end |
#term ⇒ Object
Returns the value of attribute term
27 28 29 |
# File 'lib/rack/timeout/core.rb', line 27 def term @term end |
#timeout ⇒ Object
Returns the value of attribute timeout
27 28 29 |
# File 'lib/rack/timeout/core.rb', line 27 def timeout @timeout end |
#wait ⇒ Object
Returns the value of attribute wait
27 28 29 |
# File 'lib/rack/timeout/core.rb', line 27 def wait @wait end |
Instance Method Details
#ms(k) ⇒ Object
helper method used for formatting values in milliseconds
35 36 37 |
# File 'lib/rack/timeout/core.rb', line 35 def ms(k) # helper method used for formatting values in milliseconds "%.fms" % (self[k] * 1000) if self[k] end |