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.
226 227 228 |
# File 'lib/gherkin/formatter/model.rb', line 226 def initialize(status, duration, ) @status, @duration, @error_message = status, duration, end |
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
224 225 226 |
# File 'lib/gherkin/formatter/model.rb', line 224 def duration @duration end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
224 225 226 |
# File 'lib/gherkin/formatter/model.rb', line 224 def @error_message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
224 225 226 |
# File 'lib/gherkin/formatter/model.rb', line 224 def status @status end |
Instance Method Details
#replay(formatter) ⇒ Object
230 231 232 |
# File 'lib/gherkin/formatter/model.rb', line 230 def replay(formatter) formatter.result(self) end |