Class: Straight::Gateway
- Inherits:
-
Object
- Object
- Straight::Gateway
- Includes:
- GatewayModule
- Defined in:
- lib/straight/gateway.rb
Constant Summary
Constants included from GatewayModule
Straight::GatewayModule::DEFAULT_STATUS_CHECK_SCHEDULE
Instance Method Summary collapse
-
#initialize ⇒ Gateway
constructor
A new instance of Gateway.
- #order_class ⇒ Object
Methods included from GatewayModule
Constructor Details
#initialize ⇒ Gateway
Returns a new instance of Gateway.
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# 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 |
Instance Method Details
#order_class ⇒ Object
236 237 238 |
# File 'lib/straight/gateway.rb', line 236 def order_class "Straight::Order" end |