Sha256: 2948bec72e0344fbb0eeb20a32a5b2fd63b8e23ecde8000805d701d1f6558a34
Contents?: true
Size: 960 Bytes
Versions: 3
Compression:
Stored size: 960 Bytes
Contents
require 'workarea' require 'workarea/storefront' require 'workarea/admin' require 'workarea/orderbot/engine' require 'workarea/orderbot/version' require 'workarea/orderbot/bogus_gateway' require 'workarea/orderbot/authentication' require 'workarea/orderbot/gateway' require 'workarea/orderbot/response' module Workarea module Orderbot def self.config Workarea.config.orderbot end def self.api_user_name Workarea.config.orderbot_api_email_address end def self.api_password Workarea.config.orderbot_api_password end def self.api_configured? api_user_name.present? && api_password.present? end def self.test? Workarea.config.use_orderbot_staging_environment end def self.gateway if Rails.env.test? Orderbot::BogusGateway.new else Orderbot::Gateway.new(api_user_name: api_user_name, api_password: api_password, test: test?) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
workarea-orderbot-1.0.2 | lib/workarea/orderbot.rb |
workarea-orderbot-1.0.1 | lib/workarea/orderbot.rb |
workarea-orderbot-1.0.0 | lib/workarea/orderbot.rb |