Class: ForemanExpireHosts::Notification::StoppedHosts

Inherits:
Base
  • Object
show all
Defined in:
app/services/foreman_expire_hosts/notification/stopped_hosts.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#all_hosts, #global_recipients

Instance Method Summary collapse

Methods inherited from Base

#deliver

Constructor Details

#initialize(opts) ⇒ StoppedHosts

Returns a new instance of StoppedHosts.



8
9
10
11
# File 'app/services/foreman_expire_hosts/notification/stopped_hosts.rb', line 8

def initialize(opts)
  super
  @delete_date = opts.fetch(:delete_date)
end

Instance Attribute Details

#delete_dateObject

Returns the value of attribute delete_date.



6
7
8
# File 'app/services/foreman_expire_hosts/notification/stopped_hosts.rb', line 6

def delete_date
  @delete_date
end