Class: Qpay::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/qpay/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @appid = options[:appid]
  @mch_id = options[:mch_id]
  @app_key = options[:app_key]
  @api_key = options[:api_key]
  @cert_type = options[:cert_type]
  @cert_file = options[:cert_file]
  @cert_password = options[:cert_password]
  @adapter = options[:adapter]
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



5
6
7
# File 'lib/qpay/config.rb', line 5

def adapter
  @adapter
end

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/qpay/config.rb', line 3

def api_key
  @api_key
end

#app_keyObject

Returns the value of attribute app_key.



3
4
5
# File 'lib/qpay/config.rb', line 3

def app_key
  @app_key
end

#appidObject

Returns the value of attribute appid.



3
4
5
# File 'lib/qpay/config.rb', line 3

def appid
  @appid
end

#cert_fileObject

Returns the value of attribute cert_file.



4
5
6
# File 'lib/qpay/config.rb', line 4

def cert_file
  @cert_file
end

#cert_passwordObject

Returns the value of attribute cert_password.



4
5
6
# File 'lib/qpay/config.rb', line 4

def cert_password
  @cert_password
end

#cert_typeObject

Returns the value of attribute cert_type.



4
5
6
# File 'lib/qpay/config.rb', line 4

def cert_type
  @cert_type
end

#mch_idObject

Returns the value of attribute mch_id.



3
4
5
# File 'lib/qpay/config.rb', line 3

def mch_id
  @mch_id
end