diff Lib/IMPL/Web/Application/RestCustomResource.pm @ 202:5146e17a7b76

IMPL::Web::Application::RestResource fixes, documentation
author sergey
date Wed, 25 Apr 2012 02:49:23 +0400
parents 0c018a247c8a
children
line wrap: on
line diff
--- a/Lib/IMPL/Web/Application/RestCustomResource.pm	Tue Apr 24 19:52:07 2012 +0400
+++ b/Lib/IMPL/Web/Application/RestCustomResource.pm	Wed Apr 25 02:49:23 2012 +0400
@@ -21,12 +21,6 @@
 	public property delete => PROP_GET | PROP_OWNERSET;
 }
 
-sub CTOR {
-	my ($this) = @_;
-	
-	die ArgumentException->new("parent") unless $this->parent; 
-}
-
 sub FetchChildResource {
 	my ($this,$id,$action) = @_;
 	
@@ -60,4 +54,10 @@
     return $this->InvokeMember($method,$action);
 }
 
+sub InvokeMember {
+	my ($this,$method,$action) = @_;
+	
+	return $this->$method($action);
+}
+
 1;
\ No newline at end of file