Class: PseudoExample

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyoffice_tcm_helper/models/pseudo_example.rb

Overview

class is describe object like RSpec::Core::Example

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description = 'Check something', started_at = Time.now) ⇒ PseudoExample

Returns a new instance of PseudoExample.



8
9
10
11
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 8

def initialize(description = 'Check something', started_at = Time.now)
  @description = description
  @execution_result = ExecutingResult.new(started_at)
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 6

def description
  @description
end

#execution_resultObject (readonly)

Returns the value of attribute execution_result.



6
7
8
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 6

def execution_result
  @execution_result
end

Instance Method Details

#exceptionnil

Returns non-existing exception.

Returns:

  • (nil)

    non-existing exception



23
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 23

def exception; end

#metadataHash

Returns metadata of class.

Returns:

  • (Hash)

    metadata of class



14
15
16
17
18
19
20
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 14

def 
  {
    description: @description,
    execution_result: @execution_result,
    absolute_file_path: __FILE__
  }
end

#pending?false

Returns is example pending.

Returns:

  • (false)

    is example pending



26
27
28
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 26

def pending?
  false
end