Class: ZaakpayRuby::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/zaakpay_ruby/request.rb

Overview

This class is for wrappers around the ZaakpayRuby request.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_paramsObject (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

#checksumObject (readonly)

Returns the value of attribute checksum.



4
5
6
# File 'lib/zaakpay_ruby/request.rb', line 4

def checksum
  @checksum
end

#paramsObject (readonly)

Returns the value of attribute params.



4
5
6
# File 'lib/zaakpay_ruby/request.rb', line 4

def params
  @params
end