Class: Puppi::Files::Notification
- Inherits:
-
Object
- Object
- Puppi::Files::Notification
- Defined in:
- lib/puppi/files/notification.rb
Instance Attribute Summary collapse
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Notification
constructor
A new instance of Notification.
Constructor Details
#initialize(args = {}) ⇒ Notification
Returns a new instance of Notification.
6 7 8 9 10 11 12 13 |
# File 'lib/puppi/files/notification.rb', line 6 def initialize args = {} @variables = args @var = Hash.new @variables.each_key do |key| @var[key.to_sym] = @variables[key] end @variables = @var end |
Instance Attribute Details
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
4 5 6 |
# File 'lib/puppi/files/notification.rb', line 4 def variables @variables end |