Class: XSpec::ExecutedUnitOfWork

Inherits:
Struct
  • Object
show all
Defined in:
lib/xspec/data_structures.rb

Overview

The result of executing a unit of work, including timing information. This is passed to notifiers for display or other processing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



174
175
176
# File 'lib/xspec/data_structures.rb', line 174

def duration
  @duration
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



174
175
176
# File 'lib/xspec/data_structures.rb', line 174

def errors
  @errors
end

#nested_unit_of_workObject

Returns the value of attribute nested_unit_of_work

Returns:

  • (Object)

    the current value of nested_unit_of_work



174
175
176
# File 'lib/xspec/data_structures.rb', line 174

def nested_unit_of_work
  @nested_unit_of_work
end

Instance Method Details

#full_nameObject



177
# File 'lib/xspec/data_structures.rb', line 177

def full_name; nested_unit_of_work.full_name end

#nameObject



175
# File 'lib/xspec/data_structures.rb', line 175

def name; nested_unit_of_work.name end

#parentsObject



176
# File 'lib/xspec/data_structures.rb', line 176

def parents; nested_unit_of_work.parents end