Class: Reviewer::Doctor::Report::ConfiguredTool

Inherits:
Struct
  • Object
show all
Defined in:
lib/reviewer/doctor/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commandsObject

Returns the value of attribute commands

Returns:

  • the current value of commands



30
31
32
# File 'lib/reviewer/doctor/report.rb', line 30

def commands
  @commands
end

#filesObject

Returns the value of attribute files

Returns:

  • the current value of files



30
31
32
# File 'lib/reviewer/doctor/report.rb', line 30

def files
  @files
end

#keyObject

Returns the value of attribute key

Returns:

  • the current value of key



30
31
32
# File 'lib/reviewer/doctor/report.rb', line 30

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • the current value of name



30
31
32
# File 'lib/reviewer/doctor/report.rb', line 30

def name
  @name
end

#skip_in_batchObject

Returns the value of attribute skip_in_batch

Returns:

  • the current value of skip_in_batch



30
31
32
# File 'lib/reviewer/doctor/report.rb', line 30

def skip_in_batch
  @skip_in_batch
end

#sourceObject

Returns the value of attribute source

Returns:

  • the current value of source



30
31
32
# File 'lib/reviewer/doctor/report.rb', line 30

def source
  @source
end

Instance Method Details

#to_hObject



34
35
36
37
38
39
40
41
42
43
44
# File 'lib/reviewer/doctor/report.rb', line 34

def to_h
  value = {
    key: key,
    name: name,
    skip_in_batch: skip_in_batch,
    commands: commands,
    source: source
  }
  value[:files] = files unless files.empty?
  value
end