class Cucumber::Messages::Duration

def self.from_h(hash)

def self.from_h(hash)
  return nil if hash.nil?
  self.new(
    seconds: hash[:seconds],
    nanos: hash[:nanos],
  )
end

def initialize(

def initialize(
  seconds: 0,
  nanos: 0
)
  @seconds = seconds
  @nanos = nanos
end