Class: ForemanDiscovery::ImportHook

Inherits:
Object
  • Object
show all
Defined in:
app/services/foreman_discovery/import_hook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#factsObject (readonly)

Returns the value of attribute facts.



3
4
5
# File 'app/services/foreman_discovery/import_hook.rb', line 3

def facts
  @facts
end

#hostObject (readonly)

Returns the value of attribute host.



3
4
5
# File 'app/services/foreman_discovery/import_hook.rb', line 3

def host
  @host
end