Class: Ansible::Ruby::Models::Tasks

Inherits:
Base
  • Object
show all
Defined in:
lib/ansible/ruby/models/tasks.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_hObject



17
18
19
20
21
# File 'lib/ansible/ruby/models/tasks.rb', line 17

def to_h
  super_result = super
  # Don't need to return highest level
  (super_result[:inclusions] || []) + super_result[:items]
end