Class: Rack::Timeout::RequestDetails
- Inherits:
-
Struct
- Object
- Struct
- Rack::Timeout::RequestDetails
- Defined in:
- lib/rack/timeout.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.
-
#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
10 11 12 |
# File 'lib/rack/timeout.rb', line 10 def id @id end |
#service ⇒ Object
Returns the value of attribute service
10 11 12 |
# File 'lib/rack/timeout.rb', line 10 def service @service end |
#state ⇒ Object
Returns the value of attribute state
10 11 12 |
# File 'lib/rack/timeout.rb', line 10 def state @state end |
#timeout ⇒ Object
Returns the value of attribute timeout
10 11 12 |
# File 'lib/rack/timeout.rb', line 10 def timeout @timeout end |
#wait ⇒ Object
Returns the value of attribute wait
10 11 12 |
# File 'lib/rack/timeout.rb', line 10 def wait @wait end |
Instance Method Details
#ms(k) ⇒ Object
helper method used for formatting values in milliseconds
17 18 19 |
# File 'lib/rack/timeout.rb', line 17 def ms(k) # helper method used for formatting values in milliseconds '%.fms' % (self[k] * 1000) if self[k] end |