Class: BitcoinPayable::Config
- Inherits:
-
Object
- Object
- BitcoinPayable::Config
- Includes:
- Singleton
- Defined in:
- lib/bitcoin_payable/config.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#master_public_key ⇒ Object
Returns the value of attribute master_public_key.
-
#master_seed ⇒ Object
Returns the value of attribute master_seed.
-
#open_exchange_key ⇒ Object
Returns the value of attribute open_exchange_key.
-
#testnet ⇒ Object
Returns the value of attribute testnet.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#currency ⇒ Object
Returns the value of attribute currency.
6 7 8 |
# File 'lib/bitcoin_payable/config.rb', line 6 def currency @currency end |
#master_public_key ⇒ Object
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_seed ⇒ Object
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_key ⇒ Object
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 |
#testnet ⇒ Object
Returns the value of attribute testnet.
6 7 8 |
# File 'lib/bitcoin_payable/config.rb', line 6 def testnet @testnet end |