Class: ForemanExpireHosts::Notification::ExpiryWarning

Inherits:
Base
  • Object
show all
Defined in:
app/services/foreman_expire_hosts/notification/expiry_warning.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) ⇒ ExpiryWarning

Returns a new instance of ExpiryWarning.



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

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

Instance Attribute Details

#expiry_dateObject

Returns the value of attribute expiry_date.



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

def expiry_date
  @expiry_date
end