Module: CemAcpt::Goss::Api::DurationHandler
- Included in:
- ActionResponseResult, ActionResponseSummary
- Defined in:
- lib/cem_acpt/goss/api/action_response.rb
Defined Under Namespace
Classes: Duration
Constant Summary collapse
- DURATION_UNITS =
%i[nanoseconds milliseconds seconds].freeze
Instance Method Summary collapse
-
#duration(unit: :seconds, round: 3) ⇒ Duration
The Duration object.
Instance Method Details
#duration(unit: :seconds, round: 3) ⇒ Duration
Returns The Duration object.
110 111 112 113 114 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 110 def duration(unit: :seconds, round: 3) @all_durations ||= {} @all_durations[unit] ||= {} @all_durations[unit][round] ||= Duration.new(@duration, unit, round) end |