class Straight::Gateway
Public Class Methods
new()
click to toggle source
# File lib/straight/gateway.rb, line 215 def initialize @default_currency = 'BTC' @blockchain_adapters = [ Blockchain::BlockchainInfoAdapter.mainnet_adapter, Blockchain::MyceliumAdapter.mainnet_adapter, Blockchain::InsightAdapter.mainnet_adapter(main_url: "https://insight.mycelium.com/api") ] @exchange_rate_adapters = [ ExchangeRate::BitpayAdapter.instance, ExchangeRate::CoinbaseAdapter.instance, ExchangeRate::BitstampAdapter.instance, ExchangeRate::BtceAdapter.instance, ExchangeRate::KrakenAdapter.instance, ExchangeRate::LocalbitcoinsAdapter.instance, ExchangeRate::OkcoinAdapter.instance ] @status_check_schedule = DEFAULT_STATUS_CHECK_SCHEDULE @address_provider = AddressProvider::Bip32.new(self) @test_mode = false end
Public Instance Methods
order_class()
click to toggle source
# File lib/straight/gateway.rb, line 236 def order_class "Straight::Order" end