Sha256: 44cf2efd789608b8b49b6d56e34979d1c2a10f4b54fee58a90cb297e7d8daed7
Contents?: true
Size: 988 Bytes
Versions: 7
Compression:
Stored size: 988 Bytes
Contents
require 'active_support/configurable' module QuickbooksWebConnector # Configure global settings for QuickbooksWebConnector # QuickbooksWebConnector.configure do |config| # config.server_version # end def self.configure(&block) yield @config ||= QuickbooksWebConnector::Configuration.new end # Global settings for QuickbooksWebConnector def self.config @config end class Configuration include ActiveSupport::Configurable config_accessor :server_version config_accessor :minimum_web_connector_client_version config_accessor :username config_accessor :password config_accessor :company_file_path config_accessor :parent_controller end configure do |config| config.server_version = '1.0.0' config.minimum_web_connector_client_version = nil config.username = 'web_connector' config.password = 'secret' config.company_file_path = '' config.parent_controller = 'ApplicationController' end end
Version data entries
7 entries across 7 versions & 1 rubygems