Sha256: 517865f1c9d1afbf1699a5198e0931a1fe8081e52d21af7217ef5bda0d1128a7
Contents?: true
Size: 1.54 KB
Versions: 1
Compression:
Stored size: 1.54 KB
Contents
module Blackbird module Retoure # Public: Configure Blackbird::Retoure within a given block. # # username - Depending on the environment this is either your DHL username # found in your dev account or the AppId of your application. # password - The password of your system user or your developer account. # This depends on the environment you are using # environment - The environment you want to use. Can be :production or # :sandbox # app_token - The token of the application for the CIG authentication # (only needed in an production environment) # app_id - The application id for the CIG authentication # # Examples # # # Sandbox environment # Blackbird::Retoure.configure do |config| # config.username = '<DHL Username>' # config.password = '<DHL User Password>' # config.environment = :sandbox # end # # # Production environment # Blackbird::Retoure.configure do |config| # config.username = '<DHL Username>' # config.password = '<DHL User Password>' # config.app_token = 'Application token for the CIG authentication' # config.app_id = 'Application ID for the CIG authentication' # config.environment = :sandbox # end # # Returns nothing. class Configuration attr_accessor :username, :password, :environment, :app_token, :app_id end def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blackbird-retoure-0.1.0 | lib/blackbird/retoure/configuration.rb |