Module: CryptoWallet
- Defined in:
- lib/crypto_wallet.rb,
lib/crypto_wallet/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.method_missing(m, *args, &block) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/crypto_wallet.rb', line 27 def self.method_missing(m, *args, &block) method_name = m.to_s params = get_params(args.first) self.api_call([method_name, params]) end |
.set_options(args = {}) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/crypto_wallet.rb', line 14 def self.(args = {}) # initialize BlockIo @api_key = args[:api_key] @pin = args[:pin] # @encryptionKey = Helper.pinToAesKey(@pin) if [email protected]? @conn_pool = ConnectionPool.new(size: 5, timeout: 300) { HTTPClient.new } @version = args[:version] || 2 # default version is 2 self.api_call(['get_balances',""]) end |