Module: Threatinator::Actions::Run::OutputConfig

Defined in:
lib/threatinator/actions/run/output_config.rb

Class Method Summary collapse

Class Method Details

.generate(plugin_loader) ⇒ Object



46
47
48
49
50
51
52
53
54
55
# File 'lib/threatinator/actions/run/output_config.rb', line 46

def self.generate(plugin_loader)
  anonymous_class = Class.new(Threatinator::Config::Base) do
    extend OutputConfigClassMethods
    include OutputConfigMethods
    set_plugin_loader(plugin_loader)
    attribute :format, Symbol, default: lambda { |c,a| :csv },
      description: lambda { |c, a| "Output format (#{c.formats_str})" }
  end
  anonymous_class
end