lib/core/definition_internal.rb
# internal runtime function
# Check while the attribute data or object is required, if it is set.
# raise a runtime error if data is not set.
# add object in the missing object Array if object is not set.
#
# *parameters*:
#   - +object_missing+ : Array of missing object for process caller.
#   - +attr_path+      : String. Attribute/data path (See KeyPath.fpath)
#   - +attr_options+   : Hash. Attribute options
#   - +fname+          : String. Caller function
#
# *return*:
#
# *raise*:
# - runtime error if required data is not set. (empty or nil)
#
internal runtime function
Check while the attribute data or object is required, if it is set.
raise a runtime error if data is not set.
add object in the missing object Array if object is not set.

parameters*:
+object_missing+ : Array of missing object for process caller.

return*.

raise*:
runtime error if required data is not set. (empty or nil)
internal runtime function Check while the attribute data or object is required if it is set . raise a runtime error if data is not set . add object in the missing object Array if object is not set . parameters * : + object_missing + : Array of missing object for process caller . return * . raise * : runtime error if required data is not set . ( empty or nil )
def _check_required_attr(object_missing, attr_path, attr_options, fname)
      attr_obj = KeyPath.new(attr_path)
      attr_name = attr_obj.key
      case attr_options[:type]
      when :data
        _check_required_attr_data(attr_name, attr_options, fname)
      when :CloudObject
        if attr_options[:required] &&
           @object_data.type?(attr_name) != :DataObject
          object_missing << attr_name
        end
      end
    end
def _check_required_attr ( object_missing , attr_path , attr_options , fname ) attr_obj = KeyPath . new ( attr_path ) attr_name = attr_obj . key case attr_options [ :type ] when :data _check_required_attr_data ( attr_name , attr_options , fname ) when :CloudObject if attr_options [ :required ] && @object_data . type? ( attr_name ) != :DataObject object_missing << attr_name end end end
internal runtime function
Check while the attribute data or object is required, if it is set.
internal runtime function Check while the attribute data or object is required if it is set .
object_missing
<not_specific>
attr_path
<not_specific>
attr_options
<not_specific>
fname
<not_specific>