class Cucumber::Core::Test::Result::Duration
Attributes
nanoseconds[R]
Public Class Methods
new(nanoseconds)
click to toggle source
# File lib/cucumber/core/test/result.rb, line 402 def initialize(nanoseconds) @nanoseconds = nanoseconds end
Public Instance Methods
to_message_duration()
click to toggle source
# File lib/cucumber/core/test/result.rb, line 406 def to_message_duration duration_hash = seconds_to_duration(nanoseconds.to_f / NANOSECONDS_PER_SECOND) duration_hash.transform_keys! do |key| key.to_sym rescue Error return key end Cucumber::Messages::Duration.from_h(duration_hash) end