Skip to content

Commit

Permalink
Add missing Client->asset_platforms()
Browse files Browse the repository at this point in the history
  • Loading branch information
barryceelen committed Feb 17, 2022
1 parent 4a327ef commit fdf3296
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 @@ -27,6 +27,20 @@ public function __construct() {
}
}

/**
* Get an instance of the AssetPlatforms class.
*
* @return AssetPlatforms
*/
public function asset_platforms() {

if ( ! class_exists( '\Cointokio\CoinGecko\AssetPlatforms' ) ) {
require_once dirname( __FILE__ ) . '/classes/class-assetplatforms.php';
}

return new AssetPlatforms();
}

/**
* Get an instance of the Coins class.
*
Expand Down

0 comments on commit fdf3296

Please sign in to comment.