Class: IPXACT::Tools::Diagnosis

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

Overview

Commodity class for handling errors and warnings produced by the method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDiagnosis

Returns a new instance of Diagnosis.



71
72
73
74
75
# File 'lib/ipxact_tools.rb', line 71

def initialize
  super
  self.errors = []
  self.warnings = []
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



70
71
72
# File 'lib/ipxact_tools.rb', line 70

def errors
  @errors
end

#warningsObject

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



70
71
72
# File 'lib/ipxact_tools.rb', line 70

def warnings
  @warnings
end