Class: ForemanExpireHosts::Notification::ExpiryWarning
- Defined in:
- app/services/foreman_expire_hosts/notification/expiry_warning.rb
Instance Attribute Summary collapse
-
#expiry_date ⇒ Object
Returns the value of attribute expiry_date.
Attributes inherited from Base
#all_hosts, #global_recipients
Instance Method Summary collapse
-
#initialize(opts) ⇒ ExpiryWarning
constructor
A new instance of ExpiryWarning.
Methods inherited from Base
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_date ⇒ Object
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 |