Class: Liqpay::BaseOperation
- Inherits:
-
Object
- Object
- Liqpay::BaseOperation
- Defined in:
- lib/liqpay/base_operation.rb
Instance Attribute Summary collapse
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ BaseOperation
constructor
A new instance of BaseOperation.
- #signature ⇒ Object
- #signature_fields ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ BaseOperation
Returns a new instance of BaseOperation.
8 9 10 11 12 13 |
# File 'lib/liqpay/base_operation.rb', line 8 def initialize(={}) .replace(Liqpay..merge()) @public_key = [:public_key] @private_key = [:private_key] end |
Instance Attribute Details
#private_key ⇒ Object
Returns the value of attribute private_key.
6 7 8 |
# File 'lib/liqpay/base_operation.rb', line 6 def private_key @private_key end |
#public_key ⇒ Object
Returns the value of attribute public_key.
6 7 8 |
# File 'lib/liqpay/base_operation.rb', line 6 def public_key @public_key end |
Instance Method Details
#signature ⇒ Object
15 16 17 |
# File 'lib/liqpay/base_operation.rb', line 15 def signature @signature ||= sign(signature_fields) end |
#signature_fields ⇒ Object
19 20 21 |
# File 'lib/liqpay/base_operation.rb', line 19 def signature_fields raise NotImplementedError end |