Class: Y2Network::IssuesResult
- Inherits:
-
Object
- Object
- Y2Network::IssuesResult
- Defined in:
- src/lib/y2network/issues_result.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#issues ⇒ Object
readonly
Returns the value of attribute issues.
Instance Method Summary collapse
-
#initialize(config, issues = Y2Issues::List.new) ⇒ IssuesResult
constructor
Represents a reading operation result.
-
#issues? ⇒ Boolean
Determines whether there is some error.
Constructor Details
#initialize(config, issues = Y2Issues::List.new) ⇒ IssuesResult
Represents a reading operation result
31 32 33 34 |
# File 'src/lib/y2network/issues_result.rb', line 31 def initialize(config, issues = Y2Issues::List.new) @config = config @issues = issues end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
25 26 27 |
# File 'src/lib/y2network/issues_result.rb', line 25 def config @config end |
#issues ⇒ Object (readonly)
Returns the value of attribute issues.
25 26 27 |
# File 'src/lib/y2network/issues_result.rb', line 25 def issues @issues end |
Instance Method Details
#issues? ⇒ Boolean
Determines whether there is some error
39 40 41 |
# File 'src/lib/y2network/issues_result.rb', line 39 def issues? issues.any? end |