Class: CucumberJunitToJson::Models::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber_junit_to_json/models/result.rb

Overview

Abstract representation of a cucumber step result attribute

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#durationObject

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_messageObject

Returns the value of attribute error_message.



9
10
11
# File 'lib/cucumber_junit_to_json/models/result.rb', line 9

def error_message
  @error_message
end

#statusObject

Returns the value of attribute status.



9
10
11
# File 'lib/cucumber_junit_to_json/models/result.rb', line 9

def status
  @status
end