Class: Threatinator::CLI::ListActionBuilder

Inherits:
ActionBuilder show all
Defined in:
lib/threatinator/cli/list_action_builder.rb

Instance Attribute Summary

Attributes inherited from ActionBuilder

#config_hash, #extra_args

Instance Method Summary collapse

Methods inherited from ActionBuilder

#feed_registry, #initialize

Constructor Details

This class inherits a constructor from Threatinator::CLI::ActionBuilder

Instance Method Details

#buildObject



7
8
9
# File 'lib/threatinator/cli/list_action_builder.rb', line 7

def build
  Threatinator::Actions::List::Action.new(feed_registry, config)
end

#configObject



11
12
13
14
# File 'lib/threatinator/cli/list_action_builder.rb', line 11

def config
  list_hash = config_hash["list"] || {}
  Threatinator::Actions::List::Config.new(list_hash)
end