Class: Cuboid::OptionGroups::Report

Inherits:
Cuboid::OptionGroup show all
Defined in:
lib/cuboid/option_groups/report.rb

Overview

Author:

Direct Known Subclasses

Snapshot

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Cuboid::OptionGroup

#==, attr_accessor, attributes, #attributes, defaults, #hash, inherited, #merge, set_defaults, #to_h, #to_hash, #to_rpc_data, #update, #validate

Constructor Details

#initializeReport

Returns a new instance of Report.



10
11
12
# File 'lib/cuboid/option_groups/report.rb', line 10

def initialize
    @default_path = self.path = default_path
end

Instance Attribute Details

#pathString

Returns Directory or file path where to store the scan report.

Returns:

  • (String)

    Directory or file path where to store the scan report.



8
9
10
# File 'lib/cuboid/option_groups/report.rb', line 8

def path
  @path
end

Instance Method Details

#default_pathObject



30
31
32
# File 'lib/cuboid/option_groups/report.rb', line 30

def default_path
    Paths.config['reports']
end

#defaultsObject



34
35
36
# File 'lib/cuboid/option_groups/report.rb', line 34

def defaults
    { path: default_path }
end