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, fix_inclusion, #initialize, remove_existing_validations, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#to_h ⇒ Object
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 |