Class: WebpayRails::Vault
- Inherits:
-
Object
- Object
- WebpayRails::Vault
- Defined in:
- lib/webpay_rails/vault.rb
Instance Attribute Summary collapse
-
#private_key ⇒ Object
readonly
Returns the value of attribute private_key.
-
#public_cert ⇒ Object
readonly
Returns the value of attribute public_cert.
-
#webpay_cert ⇒ Object
readonly
Returns the value of attribute webpay_cert.
Instance Method Summary collapse
-
#initialize(args) ⇒ Vault
constructor
A new instance of Vault.
Constructor Details
#initialize(args) ⇒ Vault
Returns a new instance of Vault.
3 4 5 6 7 8 9 |
# File 'lib/webpay_rails/vault.rb', line 3 def initialize(args) args.map { |k, v| send("#{k}=", v) if respond_to? k } raise WebpayRails::MissingPrivateKey unless @private_key raise WebpayRails::MissingWebpayCertificate unless @webpay_cert raise WebpayRails::MissingPublicCertificate unless @public_cert end |
Instance Attribute Details
#private_key ⇒ Object
Returns the value of attribute private_key.
11 12 13 |
# File 'lib/webpay_rails/vault.rb', line 11 def private_key @private_key end |
#public_cert ⇒ Object
Returns the value of attribute public_cert.
11 12 13 |
# File 'lib/webpay_rails/vault.rb', line 11 def public_cert @public_cert end |
#webpay_cert ⇒ Object
Returns the value of attribute webpay_cert.
11 12 13 |
# File 'lib/webpay_rails/vault.rb', line 11 def webpay_cert @webpay_cert end |