class Fireblocks::Configuration
base_url
is set to a default but can be configured
Constants
- Error
Attributes
api_key[W]
base_url[RW]
private_key[W]
Public Class Methods
new()
click to toggle source
# File lib/fireblocks/configuration.rb, line 13 def initialize @api_key = nil @private_key = nil @base_url = 'https://api.fireblocks.io' end
Public Instance Methods
api_key()
click to toggle source
# File lib/fireblocks/configuration.rb, line 19 def api_key message = 'Fireblocks api key not set. See Fireblocks documentation ' \ 'to get a hold of your api key' raise Error, message unless @api_key @api_key end
private_key()
click to toggle source
# File lib/fireblocks/configuration.rb, line 28 def private_key message = 'Fireblocks private key not set. See Fireblocks documentation ' \ 'to get a hold of your private key' raise Error, message unless @private_key @private_key end