Class: Cb::Responses::Timing
- Inherits:
-
Object
- Object
- Cb::Responses::Timing
- Defined in:
- lib/cb/responses/timing.rb
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
readonly
Returns the value of attribute elapsed.
-
#response_sent ⇒ Object
readonly
Returns the value of attribute response_sent.
Instance Method Summary collapse
-
#initialize(response, raise_on_parse_fail = true) ⇒ Timing
constructor
A new instance of Timing.
Constructor Details
#initialize(response, raise_on_parse_fail = true) ⇒ Timing
Returns a new instance of Timing.
16 17 18 19 20 |
# File 'lib/cb/responses/timing.rb', line 16 def initialize(response, raise_on_parse_fail = true) @response = response @should_raise_on_parse_fail = raise_on_parse_fail post_initialize end |
Instance Attribute Details
#elapsed ⇒ Object (readonly)
Returns the value of attribute elapsed.
14 15 16 |
# File 'lib/cb/responses/timing.rb', line 14 def elapsed @elapsed end |
#response_sent ⇒ Object (readonly)
Returns the value of attribute response_sent.
14 15 16 |
# File 'lib/cb/responses/timing.rb', line 14 def response_sent @response_sent end |