Class: Y2Network::IssuesResult

Inherits:
Object
  • Object
show all
Defined in:
src/lib/y2network/issues_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, issues = Y2Issues::List.new) ⇒ IssuesResult

Represents a reading operation result

Parameters:

  • config (Config)

    Read configuration

  • issues (Errors::List) (defaults to: Y2Issues::List.new)

    Errors list



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

#configObject (readonly)

Returns the value of attribute config.



25
26
27
# File 'src/lib/y2network/issues_result.rb', line 25

def config
  @config
end

#issuesObject (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

Returns:

  • (Boolean)


39
40
41
# File 'src/lib/y2network/issues_result.rb', line 39

def issues?
  issues.any?
end