Class: CucumberJunitToJson::Models::Result
- Inherits:
-
Object
- Object
- CucumberJunitToJson::Models::Result
- Defined in:
- lib/cucumber_junit_to_json/models/result.rb
Overview
Abstract representation of a cucumber step result attribute
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, duration) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(status, duration) ⇒ Result
Returns a new instance of Result.
10 11 12 13 14 |
# File 'lib/cucumber_junit_to_json/models/result.rb', line 10 def initialize(status, duration) @status = status.to_s.strip @duration = duration.to_f @error_message = nil end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
9 10 11 |
# File 'lib/cucumber_junit_to_json/models/result.rb', line 9 def duration @duration end |
#error_message ⇒ Object
Returns the value of attribute error_message.
9 10 11 |
# File 'lib/cucumber_junit_to_json/models/result.rb', line 9 def @error_message end |
#status ⇒ Object
Returns the value of attribute status.
9 10 11 |
# File 'lib/cucumber_junit_to_json/models/result.rb', line 9 def status @status end |