Class: OnlyofficeTestrailWrapper::ExampleLPVException

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyoffice_testrail_wrapper/testrail_helper/example_lpv_exception.rb

Overview

Class for example with LPV exception

Instance Method Summary collapse

Constructor Details

#initialize(example) ⇒ ExampleLPVException

Returns a new instance of ExampleLPVException.



6
7
8
# File 'lib/onlyoffice_testrail_wrapper/testrail_helper/example_lpv_exception.rb', line 6

def initialize(example)
  @example = example
end

Instance Method Details

#commentString

Returns comment for this exception.

Returns:

  • (String)

    comment for this exception



16
17
18
# File 'lib/onlyoffice_testrail_wrapper/testrail_helper/example_lpv_exception.rb', line 16

def comment
  "\n#{@example.exception}"
end

#resultSymbol

Returns result of this exception.

Returns:

  • (Symbol)

    result of this exception



11
12
13
# File 'lib/onlyoffice_testrail_wrapper/testrail_helper/example_lpv_exception.rb', line 11

def result
  :lpv
end