diff --git a/class-client.php b/class-client.php index 123a328..6975922 100644 --- a/class-client.php +++ b/class-client.php @@ -41,6 +41,20 @@ public function asset_platforms() { return new AssetPlatforms(); } + /** + * Get an instance of the Categories class. + * + * @return Coins + */ + public function categories() { + + if ( ! class_exists( '\Cointokio\CoinGecko\Categories' ) ) { + require_once dirname( __FILE__ ) . '/classes/class-categories.php'; + } + + return new Categories(); + } + /** * Get an instance of the Coins class. *