Module: StraightServer
- Defined in:
- lib/straight-server.rb,
lib/straight-server/order.rb,
lib/straight-server/config.rb,
lib/straight-server/logger.rb,
lib/straight-server/server.rb,
lib/straight-server/thread.rb,
lib/straight-server/gateway.rb,
lib/straight-server/throttler.rb,
lib/straight-server/initializer.rb,
lib/straight-server/orders_controller.rb,
lib/straight-server/signature_validator.rb
Defined Under Namespace
Modules: GatewayModule, Initializer Classes: GatewayOnConfig, GatewayOnDB, Logger, Order, OrdersController, Server, SignatureValidator, Thread, Throttler
Constant Summary collapse
- VERSION =
File.read(File.('../', File.dirname(__FILE__)) + '/VERSION')
- StraightServerError =
Class.new(StandardError)
- Gateway =
It may not be a perfect way to implement such a thing, but it gives enough flexibility to people so they can simply start using a single gateway on their machines, a gateway which attributes are defined in a config file instead of a DB. That way they don’t need special tools to access the DB and create a gateway, but can simply edit the config file.
if StraightServer::Config.gateways_source == 'config' GatewayOnConfig else GatewayOnDB end
Class Attribute Summary collapse
-
.db_connection ⇒ Object
Returns the value of attribute db_connection.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.redis_connection ⇒ Object
Returns the value of attribute redis_connection.
Class Attribute Details
.db_connection ⇒ Object
Returns the value of attribute db_connection.
20 21 22 |
# File 'lib/straight-server.rb', line 20 def db_connection @db_connection end |
.logger ⇒ Object
Returns the value of attribute logger.
20 21 22 |
# File 'lib/straight-server.rb', line 20 def logger @logger end |
.redis_connection ⇒ Object
Returns the value of attribute redis_connection.
20 21 22 |
# File 'lib/straight-server.rb', line 20 def redis_connection @redis_connection end |