Class: Fawry::FawryCallback
- Inherits:
-
Object
- Object
- Fawry::FawryCallback
- Includes:
- Utils
- Defined in:
- lib/fawry/fawry_callback.rb
Constant Summary
Constants included from Utils
Instance Attribute Summary collapse
-
#callback_params ⇒ Object
readonly
Returns the value of attribute callback_params.
-
#fawry_secure_key ⇒ Object
readonly
Returns the value of attribute fawry_secure_key.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(callback_params, opts) ⇒ FawryCallback
constructor
A new instance of FawryCallback.
- #parse ⇒ Object
Methods included from Utils
Constructor Details
#initialize(callback_params, opts) ⇒ FawryCallback
Returns a new instance of FawryCallback.
9 10 11 12 13 |
# File 'lib/fawry/fawry_callback.rb', line 9 def initialize(callback_params, opts) @callback_params = callback_params @fawry_secure_key = Fawry.configuration.fawry_secure_key || ENV.fetch('FAWRY_SECURE_KEY') @options = opts end |
Instance Attribute Details
#callback_params ⇒ Object (readonly)
Returns the value of attribute callback_params.
7 8 9 |
# File 'lib/fawry/fawry_callback.rb', line 7 def callback_params @callback_params end |
#fawry_secure_key ⇒ Object (readonly)
Returns the value of attribute fawry_secure_key.
7 8 9 |
# File 'lib/fawry/fawry_callback.rb', line 7 def fawry_secure_key @fawry_secure_key end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/fawry/fawry_callback.rb', line 7 def @options end |
Instance Method Details
#parse ⇒ Object
15 16 17 18 19 20 |
# File 'lib/fawry/fawry_callback.rb', line 15 def parse verify_callback_signature! build_callback self end |