Class: Mobilepay::Security
- Inherits:
-
Object
- Object
- Mobilepay::Security
- Includes:
- Requests, Requests::GenerateSignature, PublicKey
- Defined in:
- lib/mobilepay/security.rb,
lib/mobilepay/security/public_key.rb
Defined Under Namespace
Modules: PublicKey
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
readonly
Returns the value of attribute base_uri.
-
#privatekey ⇒ Object
readonly
Returns the value of attribute privatekey.
-
#subscription_key ⇒ Object
readonly
Returns the value of attribute subscription_key.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Security
constructor
A new instance of Security.
Methods included from Requests::GenerateSignature
Methods included from PublicKey
Constructor Details
#initialize(args = {}) ⇒ Security
Returns a new instance of Security.
14 15 16 17 18 |
# File 'lib/mobilepay/security.rb', line 14 def initialize(args = {}) @subscription_key = args[:subscription_key] || '' @privatekey = nil @base_uri = 'https://api.mobeco.dk/merchantsecurity/api' end |
Instance Attribute Details
#base_uri ⇒ Object (readonly)
Returns the value of attribute base_uri.
12 13 14 |
# File 'lib/mobilepay/security.rb', line 12 def base_uri @base_uri end |
#privatekey ⇒ Object (readonly)
Returns the value of attribute privatekey.
12 13 14 |
# File 'lib/mobilepay/security.rb', line 12 def privatekey @privatekey end |
#subscription_key ⇒ Object (readonly)
Returns the value of attribute subscription_key.
12 13 14 |
# File 'lib/mobilepay/security.rb', line 12 def subscription_key @subscription_key end |