Class: Threatinator::CLI::ListActionBuilder
- Inherits:
-
ActionBuilder
- Object
- ActionBuilder
- Threatinator::CLI::ListActionBuilder
- Defined in:
- lib/threatinator/cli/list_action_builder.rb
Instance Attribute Summary
Attributes inherited from ActionBuilder
Instance Method Summary collapse
Methods inherited from ActionBuilder
Constructor Details
This class inherits a constructor from Threatinator::CLI::ActionBuilder
Instance Method Details
#build ⇒ Object
7 8 9 |
# File 'lib/threatinator/cli/list_action_builder.rb', line 7 def build Threatinator::Actions::List::Action.new(feed_registry, config) end |
#config ⇒ Object
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 |