Class: ForemanDiscovery::ImportHook
- Inherits:
-
Object
- Object
- ForemanDiscovery::ImportHook
- Defined in:
- app/services/foreman_discovery/import_hook.rb
Direct Known Subclasses
ForemanDiscovery::ImportHooks::DiscoveryAttribute, ForemanDiscovery::ImportHooks::LldpNeighbor, ForemanDiscovery::ImportHooks::LockTemplates, ForemanDiscovery::ImportHooks::SubnetAndTaxonomy
Instance Attribute Summary collapse
-
#facts ⇒ Object
readonly
Returns the value of attribute facts.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize(host:, facts:) ⇒ ImportHook
constructor
A new instance of ImportHook.
Constructor Details
#initialize(host:, facts:) ⇒ ImportHook
Returns a new instance of ImportHook.
5 6 7 8 |
# File 'app/services/foreman_discovery/import_hook.rb', line 5 def initialize(host:, facts:) @host = host @facts = facts end |
Instance Attribute Details
#facts ⇒ Object (readonly)
Returns the value of attribute facts.
3 4 5 |
# File 'app/services/foreman_discovery/import_hook.rb', line 3 def facts @facts end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
3 4 5 |
# File 'app/services/foreman_discovery/import_hook.rb', line 3 def host @host end |