Class: Gherkin::Formatter::Model::Result
- Defined in:
- lib/gherkin/formatter/model.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, duration, error_message) ⇒ Result
constructor
A new instance of Result.
- #replay(formatter) ⇒ Object
Methods inherited from Hashable
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, ) @status, @duration, @error_message = status, duration, end |
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
269 270 271 |
# File 'lib/gherkin/formatter/model.rb', line 269 def duration @duration end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
269 270 271 |
# File 'lib/gherkin/formatter/model.rb', line 269 def @error_message end |
#status ⇒ Object (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 |