example/students_4/controller/yaml_students_code.rb
# Example 4: Delete added to the controller.
Example 4: Delete added to the controller.
Example 4 : Delete added to the controller .
def delete(sObjectType, hParams)
    case sObjectType
    when :student
      required?(hParams, :connection)
      hParams[:connection].delete_student(hParams[sObjectType][:id])
    else
      Error format("'%s' is not a valid object for 'create'", sObjectType)
    end
  end
def delete ( sObjectType , hParams ) case sObjectType when :student required? ( hParams , :connection ) hParams [ :connection ] . delete_student ( hParams [ sObjectType ] [ :id ] ) else Error format ( "'%s' is not a valid object for 'create'" , sObjectType ) end end
Example 4: Delete added to the controller.
Example 4 : Delete added to the controller .
sObjectType
<not_specific>
hParams
<not_specific>