Class: OnlyofficeTestrailWrapper::ExampleServiceUnavailableException

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

Overview

Class for example with exception ‘Service Unavailable`

Instance Method Summary collapse

Constructor Details

#initialize(example) ⇒ ExampleServiceUnavailableException

Returns a new instance of ExampleServiceUnavailableException.



6
7
8
# File 'lib/onlyoffice_testrail_wrapper/testrail_helper/example_service_unavailable_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_service_unavailable_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_service_unavailable_exception.rb', line 11

def result
  :service_unavailable
end