Skip to content

Commit

Permalink
Update ruby client for cdp service (#7)
Browse files Browse the repository at this point in the history
### What changed? Why?

Update ruby client for cdp backend

#### Qualified Impact
<!-- Please evaluate what components could be affected and what the
impact would be if there was an
error. How would this error be resolved, e.g. rollback a deploy, push a
new fix, disable a feature
flag, etc... -->
  • Loading branch information
jazz-cb authored Apr 23, 2024
1 parent d895436 commit 32134f6
Show file tree
Hide file tree
Showing 20 changed files with 3,987 additions and 674 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Gemfile.lock
.yardoc
.yardoc
lib/**/.DS_Store
.idea
57 changes: 35 additions & 22 deletions lib/coinbase/client.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# frozen_string_literal: true
=begin
#Coinbase Platform API
# #Coinbase Platform API
# This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
# The version of the OpenAPI document: 0.0.alpha
# Contact: [email protected]
# Generated by: https://openapi-generator.tech
# Generator version: 7.5.0
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
The version of the OpenAPI document: 0.0.1-alpha
Contact: [email protected]
Generated by: https://openapi-generator.tech
Generator version: 7.5.0
=end

# Common files
require 'coinbase/client/api_client'
Expand All @@ -14,26 +17,36 @@
require 'coinbase/client/configuration'

# Models
Coinbase::Client.autoload :Address, 'coinbase/client/models/address'
Coinbase::Client.autoload :AddressBalanceList, 'coinbase/client/models/address_balance_list'
Coinbase::Client.autoload :AddressList, 'coinbase/client/models/address_list'
Coinbase::Client.autoload :Asset, 'coinbase/client/models/asset'
Coinbase::Client.autoload :Balance, 'coinbase/client/models/balance'
Coinbase::Client.autoload :CreateAddressRequest, 'coinbase/client/models/create_address_request'
Coinbase::Client.autoload :CreateWalletRequest, 'coinbase/client/models/create_wallet_request'
Coinbase::Client.autoload :Error, 'coinbase/client/models/error'
Coinbase::Client.autoload :User, 'coinbase/client/models/user'
Coinbase::Client.autoload :Wallet, 'coinbase/client/models/wallet'
Coinbase::Client.autoload :WalletList, 'coinbase/client/models/wallet_list'

# APIs
Coinbase::Client.autoload :AddressesApi, 'coinbase/client/api/addresses_api'
Coinbase::Client.autoload :UsersApi, 'coinbase/client/api/users_api'
Coinbase::Client.autoload :WalletsApi, 'coinbase/client/api/wallets_api'

module Coinbase
module Client
class << self
# Customize default settings for the SDK using block.
# Coinbase::Client.configure do |config|
# config.username = "xxx"
# config.password = "xxx"
# end
# If no block given, return the default Configuration object.
def configure
if block_given?
yield(Configuration.default)
else
Configuration.default
end
module Coinbase::Client
class << self
# Customize default settings for the SDK using block.
# Coinbase::Client.configure do |config|
# config.username = "xxx"
# config.password = "xxx"
# end
# If no block given, return the default Configuration object.
def configure
if block_given?
yield(Configuration.default)
else
Configuration.default
end
end
end
Expand Down
Loading

0 comments on commit 32134f6

Please sign in to comment.