Description
It appears that the top-level module Coinbase is not defined before the first require_relative 'coinbase/client'. The code in api_client.rb defines module Coinbase::Client. This causes Ruby to fail when trying to access Coinbase::Client because Ruby doesn’t recognize the Coinbase module yet.
To reproduce (using ruby 2.7.5 and 3+):
- Launch IRB.
- Run
require 'coinbase'
- Observe the "uninitialized constant Coinbase (NameError)" error.
Will submit a PR with a suggested fix!