Sha256: d811ad61486bc4f37c8e3a348c4ab5d2cb9f931058e072b4bc243adaf1da9648
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
# Students process class StudentsProcess def create_student(sObjectType, hParams) puts "Running creation process for object '%s' = '%s'" % [sObjectType, hParams[:student_name] ] # If you prefer to print out to the log system instead: # PrcLib::debug("Running creation process for object '%s' = '%s'" % [sObjectType, hParams[:student_name] ]) end end # Declaring your data model and handlers. class Lorj::BaseDefinition # We need to define the student object and the handler to use while we need to create it. define_obj(:student, { :create_e => :create_student # The function to call in the class Students }) obj_needs :data, :student_name, { :for => [:create_e] } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lorj-0.2.0 | example/students_1/process/Students.rb |
lorj-0.1.0 | example/students_1/process/Students.rb |