Class: BitcoinPayable::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/bitcoin_payable/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



8
9
10
11
# File 'lib/bitcoin_payable/config.rb', line 8

def initialize
  @currency ||= :cad
  @testnet ||= false
end

Instance Attribute Details

#currencyObject

Returns the value of attribute currency.



6
7
8
# File 'lib/bitcoin_payable/config.rb', line 6

def currency
  @currency
end

#master_public_keyObject

Returns the value of attribute master_public_key.



6
7
8
# File 'lib/bitcoin_payable/config.rb', line 6

def master_public_key
  @master_public_key
end

#master_seedObject

Returns the value of attribute master_seed.



6
7
8
# File 'lib/bitcoin_payable/config.rb', line 6

def master_seed
  @master_seed
end

#open_exchange_keyObject

Returns the value of attribute open_exchange_key.



6
7
8
# File 'lib/bitcoin_payable/config.rb', line 6

def open_exchange_key
  @open_exchange_key
end

#testnetObject

Returns the value of attribute testnet.



6
7
8
# File 'lib/bitcoin_payable/config.rb', line 6

def testnet
  @testnet
end