I tried the equivalent ruby code for the following PHP code.
PHP code:
var $secretKey = "19535CF3D949D4EF56F8D3D4ED78C505";
$sign=md5 ($post_data.$this->secretKey );
Tried Ruby code:
secretKey = "19535CF3D949D4EF56F8D3D4ED78C505"
Digest::MD5.hexdigest(post_data, secretkey)
This throws ArgumentError: wrong number of arguments (1 for 0) error. Can anybody help me with the correct equivalent ruby code.