Class: Cucumber::Core::Test::Result::Duration

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/test/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nanoseconds) ⇒ Duration

Returns a new instance of Duration.



250
251
252
# File 'lib/cucumber/core/test/result.rb', line 250

def initialize(nanoseconds)
  @nanoseconds = nanoseconds
end

Instance Attribute Details

#nanosecondsObject (readonly)

Returns the value of attribute nanoseconds.



248
249
250
# File 'lib/cucumber/core/test/result.rb', line 248

def nanoseconds
  @nanoseconds
end