Class: PaymentHighway::Config
- Inherits:
-
Object
- Object
- PaymentHighway::Config
- Defined in:
- lib/payment_highway/config.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#key ⇒ Object
Returns the value of attribute key.
-
#merchant ⇒ Object
Returns the value of attribute merchant.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#service ⇒ Object
Returns the value of attribute service.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(account:, key:, secret:, merchant: nil, service: 'https://v1.api.paymenthighway.io', version: PaymentHighway::API_VERSION) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(account:, key:, secret:, merchant: nil, service: 'https://v1.api.paymenthighway.io', version: PaymentHighway::API_VERSION) ⇒ Config
Returns a new instance of Config.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/payment_highway/config.rb', line 4 def initialize( account:, key:, secret:, merchant: nil, # This is optional only and it's used if account has sub merchant service: 'https://v1.api.paymenthighway.io', version: PaymentHighway::API_VERSION ) @account = account @merchant = merchant @key = key @secret = secret @service = service @version = version end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
3 4 5 |
# File 'lib/payment_highway/config.rb', line 3 def account @account end |
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/payment_highway/config.rb', line 3 def key @key end |
#merchant ⇒ Object
Returns the value of attribute merchant.
3 4 5 |
# File 'lib/payment_highway/config.rb', line 3 def merchant @merchant end |
#secret ⇒ Object
Returns the value of attribute secret.
3 4 5 |
# File 'lib/payment_highway/config.rb', line 3 def secret @secret end |
#service ⇒ Object
Returns the value of attribute service.
3 4 5 |
# File 'lib/payment_highway/config.rb', line 3 def service @service end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/payment_highway/config.rb', line 3 def version @version end |