lib/core/core_object_params.rb
# Function to provide a list of valid attributes for an event given.
#
# * *args* :
#   - +object_type+: object_type
#   - +event_type+ : Can be create_e, delete_e, query_e, get_e
#   - +param_type+ : Can be nil (default), :data or :CloudObject
#
# * *return*:
#   - params_obj : List of valid attributes (KeyPath type) for
#     the event given.
Function to provide a list of valid attributes for an event given.

*return*:
params_obj : List of valid attributes (KeyPath type) for
the event given.
Function to provide a list of valid attributes for an event given . * return * : params_obj : List of valid attributes ( KeyPath type ) for the event given .
def _object_params_event(object_type, sEventType, param_type = nil)
      obj_params = PrcLib.model.meta_obj.rh_get(object_type, :params, :keys)
      attrs = []
      obj_params.each do |param_path, param_options|
        next unless _param_event?(param_options, sEventType)
        next if param_type && param_type != param_options[:type]
        attrs << KeyPath.new(param_path)
      end
      attrs
    end
def _object_params_event ( object_type , sEventType , param_type = nil ) obj_params = PrcLib . model . meta_obj . rh_get ( object_type , :params , :keys ) attrs = [ ] obj_params . each do | param_path , param_options | next unless _param_event? ( param_options , sEventType ) next if param_type && param_type != param_options [ :type ] attrs << KeyPath . new ( param_path ) end attrs end
Function to provide a list of valid attributes for an event given.
Function to provide a list of valid attributes for an event given .
object_type
<not_specific>
sEventType
<not_specific>
param_type
<not_specific>