Class: Qpay::Config
- Inherits:
-
Object
- Object
- Qpay::Config
- Defined in:
- lib/qpay/config.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#app_key ⇒ Object
Returns the value of attribute app_key.
-
#appid ⇒ Object
Returns the value of attribute appid.
-
#cert_file ⇒ Object
Returns the value of attribute cert_file.
-
#cert_password ⇒ Object
Returns the value of attribute cert_password.
-
#cert_type ⇒ Object
Returns the value of attribute cert_type.
-
#mch_id ⇒ Object
Returns the value of attribute mch_id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options = {}) ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/qpay/config.rb', line 7 def initialize( = {}) @appid = [:appid] @mch_id = [:mch_id] @app_key = [:app_key] @api_key = [:api_key] @cert_type = [:cert_type] @cert_file = [:cert_file] @cert_password = [:cert_password] @adapter = [:adapter] end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
5 6 7 |
# File 'lib/qpay/config.rb', line 5 def adapter @adapter end |
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/qpay/config.rb', line 3 def api_key @api_key end |
#app_key ⇒ Object
Returns the value of attribute app_key.
3 4 5 |
# File 'lib/qpay/config.rb', line 3 def app_key @app_key end |
#appid ⇒ Object
Returns the value of attribute appid.
3 4 5 |
# File 'lib/qpay/config.rb', line 3 def appid @appid end |
#cert_file ⇒ Object
Returns the value of attribute cert_file.
4 5 6 |
# File 'lib/qpay/config.rb', line 4 def cert_file @cert_file end |
#cert_password ⇒ Object
Returns the value of attribute cert_password.
4 5 6 |
# File 'lib/qpay/config.rb', line 4 def cert_password @cert_password end |
#cert_type ⇒ Object
Returns the value of attribute cert_type.
4 5 6 |
# File 'lib/qpay/config.rb', line 4 def cert_type @cert_type end |
#mch_id ⇒ Object
Returns the value of attribute mch_id.
3 4 5 |
# File 'lib/qpay/config.rb', line 3 def mch_id @mch_id end |