Class: Allure::StatusDetails

Inherits:
JSONable show all
Defined in:
allure-ruby-commons/lib/allure_ruby_commons/model/status_details.rb

Overview

Allure model status detail object

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JSONable

#==, #as_json, #to_json

Constructor Details

#initialize(known: false, muted: false, flaky: false, message: nil, trace: nil) ⇒ StatusDetails

Returns a new instance of StatusDetails.

Parameters:

  • known (Boolean) (defaults to: false)
  • muted (Boolean) (defaults to: false)
  • flaky (Boolean) (defaults to: false)
  • message (String) (defaults to: nil)
  • trace (String) (defaults to: nil)

11
12
13
14
15
16
17
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/status_details.rb', line 11

def initialize(known: false, muted: false, flaky: false, message: nil, trace: nil)
  @known = known
  @muted = muted
  @flaky = flaky
  @message = message
  @trace = trace
end

Instance Attribute Details

#flakyObject

Returns the value of attribute flaky


19
20
21
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/status_details.rb', line 19

def flaky
  @flaky
end

#knownObject

Returns the value of attribute known


19
20
21
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/status_details.rb', line 19

def known
  @known
end

#messageObject

Returns the value of attribute message


19
20
21
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/status_details.rb', line 19

def message
  @message
end

#mutedObject

Returns the value of attribute muted


19
20
21
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/status_details.rb', line 19

def muted
  @muted
end

#traceObject

Returns the value of attribute trace


19
20
21
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/status_details.rb', line 19

def trace
  @trace
end