Class: MastercardCoreSdk::Core::ApiConfig
- Inherits:
-
Object
- Object
- MastercardCoreSdk::Core::ApiConfig
- Defined in:
- lib/mastercard_core_sdk/core/api_config.rb
Overview
Defines consumer key, private key from developer’s site and name, host URL for environment other than sandbox/production.
Constant Summary collapse
- CONFIG_NAME_HEADER =
"__config_name__"
Instance Attribute Summary collapse
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#host_url ⇒ Object
Returns the value of attribute host_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
Instance Method Summary collapse
-
#initialize(name, consumer_key, private_key, host_url) ⇒ ApiConfig
constructor
A new instance of ApiConfig.
Constructor Details
#initialize(name, consumer_key, private_key, host_url) ⇒ ApiConfig
Returns a new instance of ApiConfig.
9 10 11 12 13 14 |
# File 'lib/mastercard_core_sdk/core/api_config.rb', line 9 def initialize(name, consumer_key, private_key, host_url) @name = name @consumer_key = consumer_key @private_key = private_key @host_url = host_url end |
Instance Attribute Details
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
7 8 9 |
# File 'lib/mastercard_core_sdk/core/api_config.rb', line 7 def consumer_key @consumer_key end |
#host_url ⇒ Object
Returns the value of attribute host_url.
7 8 9 |
# File 'lib/mastercard_core_sdk/core/api_config.rb', line 7 def host_url @host_url end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/mastercard_core_sdk/core/api_config.rb', line 7 def name @name end |
#private_key ⇒ Object
Returns the value of attribute private_key.
7 8 9 |
# File 'lib/mastercard_core_sdk/core/api_config.rb', line 7 def private_key @private_key end |