Class: Ansible::Ruby::Models::Unit
- Defined in:
- lib/ansible/ruby/models/unit.rb
Instance Method Summary collapse
Methods inherited from Base
attr_option, attr_options, attribute, #initialize, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#to_h ⇒ Object
17 18 19 20 21 22 |
# File 'lib/ansible/ruby/models/unit.rb', line 17 def to_h result = super notify = result.delete :notify result[:notify] = [*notify] if notify result end |