Class: Factorix::Dependency::ValidationResult::Warning

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 warning information

Represents a warning found during dependency validation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Warning

Returns a new instance of Warning.

Parameters:

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


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

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

Instance Attribute Details

#message ⇒ Object (readonly)

Returns the value of attribute message

Returns:

  • (Object) —

    the current value of message



25
26
27
# File 'lib/factorix/dependency/validation_result.rb', line 25

def message
  @message
end

#mod ⇒ Object (readonly)

Returns the value of attribute mod

Returns:

  • (Object) —

    the current value of mod



25
26
27
# File 'lib/factorix/dependency/validation_result.rb', line 25

def mod
  @mod
end

#type ⇒ Object (readonly)

Returns the value of attribute type

Returns:

  • (Object) —

    the current value of type



25
26
27
# File 'lib/factorix/dependency/validation_result.rb', line 25

def type
  @type
end