Class: Ansible::Ruby::Models::Unit

Inherits:
Base
  • Object
show all
Defined in:
lib/ansible/ruby/models/unit.rb

Direct Known Subclasses

Block, Task

Instance Method Summary collapse

Methods inherited from Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#to_hObject



21
22
23
24
25
26
# File 'lib/ansible/ruby/models/unit.rb', line 21

def to_h
  result = super
  notify = result.delete :notify
  result[:notify] = [*notify] if notify
  result
end