class Izokatu::Decrypter
Abstract class for decrypters
@abstract Subclasses are containing implementation of {#decrypt_data!}
Attributes
decrypted_data[R]
@return [Hash] decrypted data for export
decrypter[R]
@return decrypter instance
encrypted_data[R]
@return [String] encrypted data for decryption
Public Class Methods
new(encrypted_data:)
click to toggle source
Initializing option for decryption
@param encrypted_data
(encrypted_data
)
@since 0.1.0
# File lib/izokatu/decrypter.rb, line 25 def initialize(encrypted_data:) import_encrypted_data!(encrypted_data) end
Public Instance Methods
import_encrypted_data!(encrypted_data)
click to toggle source
Importing encrypted data from param
@param encrypted_data
(encrypted_data
)
@return [String] (encrypted_data
)
@since 0.1.0
# File lib/izokatu/decrypter.rb, line 37 def import_encrypted_data!(encrypted_data) @encrypted_data = encrypted_data end
perform()
click to toggle source
Performing data decryption
@return [Hash] decrypted data
@since 0.1.0
# File lib/izokatu/decrypter.rb, line 47 def perform decrypt_data! end
Private Instance Methods
decrypt_data!()
click to toggle source
Decrypting data
@raise RuntimeError
@since 0.1.0
# File lib/izokatu/decrypter.rb, line 58 def decrypt_data! raise 'Not implemented!' end