class CryptocoinPayable::Configuration

Attributes

bch[RW]
btc[RW]
currency[W]
eth[RW]
expire_payments_after[RW]
request_delay[RW]
testnet[RW]

Public Instance Methods

configure_bch() { |bch| ... } click to toggle source
# File lib/cryptocoin_payable/config.rb, line 24
def configure_bch
  @bch ||= BchConfiguration.new
  yield(@bch)
end
configure_btc() { |btc| ... } click to toggle source
# File lib/cryptocoin_payable/config.rb, line 19
def configure_btc
  @btc ||= BtcConfiguration.new
  yield(@btc)
end
configure_eth() { |eth| ... } click to toggle source
# File lib/cryptocoin_payable/config.rb, line 29
def configure_eth
  @eth ||= EthConfiguration.new
  yield(@eth)

  Eth.configure do |config|
    config.chain_id = CryptocoinPayable.configuration.testnet ? 4 : 1
  end
end
currency() click to toggle source
# File lib/cryptocoin_payable/config.rb, line 15
def currency
  @currency ||= :usd
end