Class: Reviewer::Doctor::Report::ConfiguredTool
- Inherits:
-
Struct
- Object
- Struct
- Reviewer::Doctor::Report::ConfiguredTool
- Defined in:
- lib/reviewer/doctor/report.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
Returns the value of attribute commands.
-
#files ⇒ Object
Returns the value of attribute files.
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#skip_in_batch ⇒ Object
Returns the value of attribute skip_in_batch.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#commands ⇒ Object
Returns the value of attribute commands
30 31 32 |
# File 'lib/reviewer/doctor/report.rb', line 30 def commands @commands end |
#files ⇒ Object
Returns the value of attribute files
30 31 32 |
# File 'lib/reviewer/doctor/report.rb', line 30 def files @files end |
#key ⇒ Object
Returns the value of attribute key
30 31 32 |
# File 'lib/reviewer/doctor/report.rb', line 30 def key @key end |
#name ⇒ Object
Returns the value of attribute name
30 31 32 |
# File 'lib/reviewer/doctor/report.rb', line 30 def name @name end |
#skip_in_batch ⇒ Object
Returns the value of attribute skip_in_batch
30 31 32 |
# File 'lib/reviewer/doctor/report.rb', line 30 def skip_in_batch @skip_in_batch end |
#source ⇒ Object
Returns the value of attribute source
30 31 32 |
# File 'lib/reviewer/doctor/report.rb', line 30 def source @source end |
Instance Method Details
#to_h ⇒ Object
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 |