Sha256: ee75b364b9d3b5519cb075214a04bb0ca1b14032941de645625d17c4e2691756
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
module Opay module Configuration extend ActiveSupport::Concern include ActiveSupport::Configurable included do config_accessor :provider # payu configuration config_accessor :pos_id config_accessor :pos_auth_key config_accessor :key1 config_accessor :key2 reset_config end module ClassMethods def configure yield self end # Sets configuration back to default def reset_config configure do |config| config.provider = :payu # payu configuration config.pos_id = 999 config.pos_auth_key = 'pos_auth_key' config.key1 = 'key1' config.key2 = 'key2' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opay-1.0.0.beta | lib/opay/configuration.rb |