Skip to content

Commit

Permalink
Add missing Client->categories()
Browse files Browse the repository at this point in the history
  • Loading branch information
barryceelen committed Feb 17, 2022
1 parent fdf3296 commit fb1b841
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions class-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit fb1b841

Please sign in to comment.