class Prevoty::EncryptResult
Attributes
algorithm[R]
cipher_text[R]
key[R]
mac[R]
mac_key[R]
mode[R]
Public Class Methods
new(data)
click to toggle source
# File lib/prevoty/responses/encrypt_result.rb, line 5 def initialize(data) @algorithm = data["algorithm"] @mode = data["mode"] @mac_key = data["mac_key"] @key = data["key"] @mac = data["mac"] @cipher_text = data["cipher_text"] end
Public Instance Methods
to_json(*a)
click to toggle source
# File lib/prevoty/responses/encrypt_result.rb, line 14 def to_json(*a) { algorithm: @algorithm, mode: @mode, mac_key: @mac_key, key: @key, mac: @mac, cipher_text: @cipher_text }.to_json end