public function init_resources() {

		$resources = array(
			'WC_API_Client_Resource_Coupons'       => 'coupons',
			'WC_API_Client_Resource_Custom'        => 'custom',
			'WC_API_Client_Resource_Customers'     => 'customers',
			'WC_API_Client_Resource_Index'         => 'index',
			'WC_API_Client_Resource_Orders'        => 'orders',
			'WC_API_Client_Resource_Order_Notes'   => 'order_notes',
			'WC_API_Client_Resource_Order_Refunds' => 'order_refunds',
			'WC_API_Client_Resource_Products'      => 'products',
			'WC_API_Client_Resource_Reports'       => 'reports',
			'WC_API_Client_Resource_Webhooks'      => 'webhooks',
		);

		foreach ( $resources as $resource_class => $resource_method ) {

			if ( class_exists( $resource_class ) ) {
				$this->$resource_method = new $resource_class( $this );
			}
		}
	}
public function init_resources() {

		$resources = array(
			'WC_API_Client_Resource_Coupons'       => 'coupons',
			'WC_API_Client_Resource_Custom'        => 'custom',
			'WC_API_Client_Resource_Customers'     => 'customers',
			'WC_API_Client_Resource_Index'         => 'index',
			'WC_API_Client_Resource_Orders'        => 'orders',
			'WC_API_Client_Resource_Order_Notes'   => 'order_notes',
			'WC_API_Client_Resource_Order_Refunds' => 'order_refunds',
			'WC_API_Client_Resource_Products'      => 'products',
			'WC_API_Client_Resource_Reports'       => 'reports',
			'WC_API_Client_Resource_Webhooks'      => 'webhooks',
		);

		foreach ( $resources as $resource_class => $resource_method ) {

			if ( class_exists( $resource_class ) ) {
				$this->$resource_method = new $resource_class( $this );
			}
		}
	}
public function init_resources ( ) { $ resources = array ( 'WC_API_Client_Resource_Coupons' => 'coupons' , 'WC_API_Client_Resource_Custom' => 'custom' , 'WC_API_Client_Resource_Customers' => 'customers' , 'WC_API_Client_Resource_Index' => 'index' , 'WC_API_Client_Resource_Orders' => 'orders' , 'WC_API_Client_Resource_Order_Notes' => 'order_notes' , 'WC_API_Client_Resource_Order_Refunds' => 'order_refunds' , 'WC_API_Client_Resource_Products' => 'products' , 'WC_API_Client_Resource_Reports' => 'reports' , 'WC_API_Client_Resource_Webhooks' => 'webhooks' , ) ; foreach ( $ resources as $ resource_class => $ resource_method ) { if ( class_exists ( $ resource_class ) ) { $ this -> $ resource_method = new $ resource_class ( $ this ) ; } } }
Load each API resource

@since 2.0
Load each API resource