Class: Installation::AutoinstIssues::MissingValue
- Defined in:
- library/general/src/lib/installation/autoinst_issues/missing_value.rb
Overview
Represents an AutoYaST situation where a mandatory value is missing.
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
Instance Method Summary collapse
-
#initialize(section, attr, description = "", severity = :warn) ⇒ MissingValue
constructor
A new instance of MissingValue.
-
#message ⇒ String
Return the error message to be displayed.
Methods inherited from Issue
Constructor Details
#initialize(section, attr, description = "", severity = :warn) ⇒ MissingValue
Returns a new instance of MissingValue.
35 36 37 38 39 40 41 42 43 44 |
# File 'library/general/src/lib/installation/autoinst_issues/missing_value.rb', line 35 def initialize(section, attr, description = "", severity = :warn) super() textdomain "base" @section = section @attribute = attr @description = description @severity = severity end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
29 30 31 |
# File 'library/general/src/lib/installation/autoinst_issues/missing_value.rb', line 29 def attribute @attribute end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
29 30 31 |
# File 'library/general/src/lib/installation/autoinst_issues/missing_value.rb', line 29 def description @description end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
29 30 31 |
# File 'library/general/src/lib/installation/autoinst_issues/missing_value.rb', line 29 def section @section end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
29 30 31 |
# File 'library/general/src/lib/installation/autoinst_issues/missing_value.rb', line 29 def severity @severity end |
Instance Method Details
#message ⇒ String
Return the error message to be displayed
50 51 52 53 54 55 |
# File 'library/general/src/lib/installation/autoinst_issues/missing_value.rb', line 50 def # TRANSLATORS: # 'attr' is an AutoYaST element # 'description' has already been translated in other modules. format(_("Missing element '%{attr}'. %{description}"), attr: attribute, description: description) end |