Class: ZaakpayRuby::Request
- Inherits:
-
Object
- Object
- ZaakpayRuby::Request
- Defined in:
- lib/zaakpay_ruby/request.rb
Overview
This class is for wrappers around the ZaakpayRuby request.
Instance Attribute Summary collapse
-
#all_params ⇒ Object
readonly
Returns the value of attribute all_params.
-
#checksum ⇒ Object
readonly
Returns the value of attribute checksum.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(args_hash) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(args_hash) ⇒ Request
Returns a new instance of Request.
6 7 8 9 10 |
# File 'lib/zaakpay_ruby/request.rb', line 6 def initialize(args_hash) @params = args_hash @checksum = ZaakpayRuby.generate_checksum(@params) @all_params = {}.merge(@params).merge({'checksum' => @checksum }) end |
Instance Attribute Details
#all_params ⇒ Object (readonly)
Returns the value of attribute all_params.
4 5 6 |
# File 'lib/zaakpay_ruby/request.rb', line 4 def all_params @all_params end |
#checksum ⇒ Object (readonly)
Returns the value of attribute checksum.
4 5 6 |
# File 'lib/zaakpay_ruby/request.rb', line 4 def checksum @checksum end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'lib/zaakpay_ruby/request.rb', line 4 def params @params end |