Class: Factorix::Dependency::ValidationResult::Error

Inherits:
Data
  • Object
show all
Defined in:
lib/factorix/dependency/validation_result.rb,
lib/factorix/dependency/validation_result.rb,
sig/factorix/dependency/validation_result.rbs

Overview

Validation error information

Represents an error found during dependency validation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Error

Returns a new instance of Error.

Parameters:

  • type: (Symbol)
  • message: (String)
  • mod: (MOD, nil)
  • dependency: (MOD, nil)


14
# File 'sig/factorix/dependency/validation_result.rbs', line 14

def initialize: (type: Symbol, message: String, ?mod: MOD?, ?dependency: MOD?) -> void

Instance Attribute Details

#dependency ⇒ Object (readonly)

Returns the value of attribute dependency

Returns:

  • (Object) —

    the current value of dependency



9
10
11
# File 'lib/factorix/dependency/validation_result.rb', line 9

def dependency
  @dependency
end

#message ⇒ Object (readonly)

Returns the value of attribute message

Returns:

  • (Object) —

    the current value of message



9
10
11
# File 'lib/factorix/dependency/validation_result.rb', line 9

def message
  @message
end

#mod ⇒ Object (readonly)

Returns the value of attribute mod

Returns:

  • (Object) —

    the current value of mod



9
10
11
# File 'lib/factorix/dependency/validation_result.rb', line 9

def mod
  @mod
end

#type ⇒ Object (readonly)

Returns the value of attribute type

Returns:

  • (Object) —

    the current value of type



9
10
11
# File 'lib/factorix/dependency/validation_result.rb', line 9

def type
  @type
end