Class: AutomationObject::BluePrint::HashAdapter::CustomMethod

Inherits:
Composite show all
Defined in:
lib/automation_object/blue_print/hash_adapter/custom_method.rb

Overview

Custom method composite

Instance Attribute Summary

Attributes inherited from Composite

#hash

Attributes included from ValidationHelper

#errors

Attributes inherited from Composite

#children, #location, #name, #parent

Instance Method Summary collapse

Methods inherited from Composite

#create_array_children, #create_composite, #create_hash_children, #get_child, #get_children, #initialize

Methods included from ValidationHelper

#add_errors, included, #valid?

Methods inherited from Composite

#add_has_many_relationships, #add_has_one_relationships, #get_child, #get_children, has_many, has_many_relationships, has_one, has_one_relationships, #initialize, #top

Methods included from Reflection

#add_alias, #add_attribute

Methods included from CompositeHook

#after_create_run, #before_create_run, included

Constructor Details

This class inherits a constructor from AutomationObject::BluePrint::HashAdapter::Composite

Instance Method Details

#element_methodObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/automation_object/blue_print/hash_adapter/custom_method.rb', line 15

def element_method
  element_method = hash[:element_method]

  case element_method
  when Symbol, String
    return element_method.to_sym
  else
    return nil
  end
end

#evaluateObject



26
27
28
# File 'lib/automation_object/blue_print/hash_adapter/custom_method.rb', line 26

def evaluate
  hash[:evaluate] ||= nil
end