class CryptApi::Main
Attributes
encrypt_algorithm[RW]
make_signature[RW]
secret_key[RW]
signature_token[RW]
url[RW]
Public Class Methods
decrypt_response(encrypted_response)
click to toggle source
# File lib/crypt_api.rb, line 32 def self.decrypt_response(encrypted_response) decrypt_data(encrypted_response, self.secret_key, self.encrypt_algorithm) end
send_encrypted_request(data)
click to toggle source
# File lib/crypt_api.rb, line 27 def self.send_encrypted_request(data) encrypted_data = encrypt_data(data.to_s, self.secret_key, self.encrypt_algorithm) post_data({data: encrypted_data}, self.url) end
set_configs() { |self| ... }
click to toggle source
# File lib/crypt_api.rb, line 23 def self.set_configs yield(self) end