lib/ipizza/request.rb in ipizza-2.1.0 vs lib/ipizza/request.rb in ipizza-2.2.0
- old
+ new
@@ -1,8 +1,8 @@
module Ipizza
class Request
-
+
attr_accessor :extra_params
attr_accessor :sign_params
attr_accessor :service_url
PARAM_ORDER = {
@@ -14,10 +14,10 @@
def sign(privkey_path, privkey_secret, order, mac_param = 'VK_MAC')
signature = Ipizza::Util.sign(privkey_path, privkey_secret, Ipizza::Util.mac_data_string(sign_params, order))
self.sign_params[mac_param] = signature
end
-
+
def request_params
sign_params.merge(extra_params)
end
end
end