Class: QuidaxWallet
Overview
Object for wallet related actions
Instance Attribute Summary
#quidax
Class Method Summary
collapse
-
.create_crypto_payment_address(q_object:, user_id:, currency:) ⇒ Object
-
.get_payment_address(q_object:, user_id:, currency:) ⇒ Object
-
.get_payment_address_by_id(q_object:, user_id:, currency:, address_id:) ⇒ Object
-
.get_payment_addresses(q_object:, user_id:, currency:) ⇒ Object
-
.get_user_wallet(q_object:, user_id:, currency:) ⇒ Object
-
.get_user_wallets(q_object:, user_id:) ⇒ Object
-
.validate_address(q_object:, currency:, address:) ⇒ Object
Instance Method Summary
collapse
get_request, #initialize, post_request, put_request, url
Class Method Details
.create_crypto_payment_address(q_object:, user_id:, currency:) ⇒ Object
59
60
61
62
|
# File 'lib/quidax/objects/wallet.rb', line 59
def self.create_crypto_payment_address(q_object:, user_id:, currency:)
path = "#{API::USER_PATH}/#{user_id}#{API::WALLET_PATH}/#{currency}/addresses"
post_request(q_object, path)
end
|
.get_payment_address(q_object:, user_id:, currency:) ⇒ Object
44
45
46
47
|
# File 'lib/quidax/objects/wallet.rb', line 44
def self.get_payment_address(q_object:, user_id:, currency:)
path = "#{API::USER_PATH}/#{user_id}#{API::WALLET_PATH}/#{currency}/address"
get_request(q_object, path)
end
|
.get_payment_address_by_id(q_object:, user_id:, currency:, address_id:) ⇒ Object
49
50
51
52
|
# File 'lib/quidax/objects/wallet.rb', line 49
def self.get_payment_address_by_id(q_object:, user_id:, currency:, address_id:)
path = "#{API::USER_PATH}/#{user_id}#{API::WALLET_PATH}/#{currency}/addresses/#{address_id}"
get_request(q_object, path)
end
|
.get_payment_addresses(q_object:, user_id:, currency:) ⇒ Object
54
55
56
57
|
# File 'lib/quidax/objects/wallet.rb', line 54
def self.get_payment_addresses(q_object:, user_id:, currency:)
path = "#{API::USER_PATH}/#{user_id}#{API::WALLET_PATH}/#{currency}/addresses"
get_request(q_object, path)
end
|
.get_user_wallet(q_object:, user_id:, currency:) ⇒ Object
39
40
41
42
|
# File 'lib/quidax/objects/wallet.rb', line 39
def self.get_user_wallet(q_object:, user_id:, currency:)
path = "#{API::USER_PATH}/#{user_id}#{API::WALLET_PATH}/#{currency}"
get_request(q_object, path)
end
|
.get_user_wallets(q_object:, user_id:) ⇒ Object
34
35
36
37
|
# File 'lib/quidax/objects/wallet.rb', line 34
def self.get_user_wallets(q_object:, user_id:)
path = "#{API::USER_PATH}/#{user_id}#{API::WALLET_PATH}"
get_request(q_object, path)
end
|
.validate_address(q_object:, currency:, address:) ⇒ Object
64
65
66
67
|
# File 'lib/quidax/objects/wallet.rb', line 64
def self.validate_address(q_object:, currency:, address:)
path = "/#{currency}/#{address}/validate_address"
get_request(q_object, path)
end
|
Instance Method Details
#create_crypto_payment_address(user_id:, currency:) ⇒ Object
26
27
28
|
# File 'lib/quidax/objects/wallet.rb', line 26
def create_crypto_payment_address(user_id:, currency:)
QuidaxWallet.create_crypto_payment_address(q_object: @quidax, user_id: user_id, currency: currency)
end
|
#get_payment_address(user_id:, currency:) ⇒ Object
13
14
15
|
# File 'lib/quidax/objects/wallet.rb', line 13
def get_payment_address(user_id:, currency:)
QuidaxWallet.get_payment_address(q_object: @quidax, user_id: user_id, currency: currency)
end
|
#get_payment_address_by_id(user_id:, currency:, address_id:) ⇒ Object
17
18
19
20
|
# File 'lib/quidax/objects/wallet.rb', line 17
def get_payment_address_by_id(user_id:, currency:, address_id:)
QuidaxWallet.get_payment_address_by_id(q_object: @quidax, user_id: user_id, currency: currency,
address_id: address_id)
end
|
#get_payment_addresses(user_id:, currency:) ⇒ Object
22
23
24
|
# File 'lib/quidax/objects/wallet.rb', line 22
def get_payment_addresses(user_id:, currency:)
QuidaxWallet.get_payment_addresses(q_object: @quidax, user_id: user_id, currency: currency)
end
|
#get_user_wallet(user_id:, currency:) ⇒ Object
9
10
11
|
# File 'lib/quidax/objects/wallet.rb', line 9
def get_user_wallet(user_id:, currency:)
QuidaxWallet.get_user_wallet(q_object: @quidax, user_id: user_id, currency: currency)
end
|
#get_user_wallets(user_id:) ⇒ Object
5
6
7
|
# File 'lib/quidax/objects/wallet.rb', line 5
def get_user_wallets(user_id:)
QuidaxWallet.get_user_wallets(q_object: @quidax, user_id: user_id)
end
|
#validate_address(currency:, address:) ⇒ Object
30
31
32
|
# File 'lib/quidax/objects/wallet.rb', line 30
def validate_address(currency:, address:)
QuidaxWallet.validate_address(q_object: @quidax, currency: currency, address: address)
end
|