Class: Gherkin::Formatter::Model::Result

Inherits:
Hashable
  • Object
show all
Defined in:
lib/gherkin/formatter/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Hashable

#to_hash

Constructor Details

#initialize(status, duration, error_message) ⇒ Result

Returns a new instance of Result.



271
272
273
# File 'lib/gherkin/formatter/model.rb', line 271

def initialize(status, duration, error_message)
  @status, @duration, @error_message = status, duration, error_message
end

Instance Attribute Details

#durationObject (readonly)

Returns the value of attribute duration.



269
270
271
# File 'lib/gherkin/formatter/model.rb', line 269

def duration
  @duration
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



269
270
271
# File 'lib/gherkin/formatter/model.rb', line 269

def error_message
  @error_message
end

#statusObject (readonly)

Returns the value of attribute status.



269
270
271
# File 'lib/gherkin/formatter/model.rb', line 269

def status
  @status
end

Instance Method Details

#replay(formatter) ⇒ Object



275
276
277
# File 'lib/gherkin/formatter/model.rb', line 275

def replay(formatter)
  formatter.result(self)
end