From 9bdd5088458d0a966eeca9974796c7991e009c30 Mon Sep 17 00:00:00 2001 From: Nick Landgrebe Date: Mon, 7 Jan 2019 19:21:29 -0600 Subject: [PATCH] Fix README for resource class config variables --- README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9ab30ae..70f14ba 100644 --- a/README.md +++ b/README.md @@ -435,9 +435,7 @@ You can create your own custom interface if your API adheres to its own standard ```javascript class Product extends MyLibrary.Base { - static define() { - this.className = 'Product'; - } + static className = 'Product'; } ``` @@ -447,9 +445,7 @@ class Product extends MyLibrary.Base { ```javascript class Product extends MyLibrary.Base { - static define() { - this.queryName = 'products' - } + static queryName = 'products'; } ``` @@ -459,9 +455,7 @@ class Product extends MyLibrary.Base { ```javascript class Product extends MyLibrary.Base { - static define() { - this.primaryKey = 'token' - } + static primaryKey = 'token'; } ```