Class: Scanny::Reporters::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/scanny/reporters/reporter.rb

Direct Known Subclasses

SimpleReporter, XMLReporter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arguments = {}) ⇒ Reporter

Returns a new instance of Reporter.



6
7
8
9
10
11
# File 'lib/scanny/reporters/reporter.rb', line 6

def initialize(arguments = {})
  arguments.each do |key, value|
    instance_variable_set("@#{key}", value) unless value.nil?
  end
  set_default_values!
end

Instance Attribute Details

#checks_performedObject

Returns the value of attribute checks_performed.



4
5
6
# File 'lib/scanny/reporters/reporter.rb', line 4

def checks_performed
  @checks_performed
end

#fileObject

Returns the value of attribute file.



4
5
6
# File 'lib/scanny/reporters/reporter.rb', line 4

def file
  @file
end

#issuesObject

Returns the value of attribute issues.



4
5
6
# File 'lib/scanny/reporters/reporter.rb', line 4

def issues
  @issues
end

#nodes_inspectedObject

Returns the value of attribute nodes_inspected.



4
5
6
# File 'lib/scanny/reporters/reporter.rb', line 4

def nodes_inspected
  @nodes_inspected
end