class OnnistuuFi::Response

Attributes

signer[R]

Public Class Methods

new(encrypted, iv, signer) click to toggle source
# File lib/onnistuu_fi/response.rb, line 7
def initialize(encrypted, iv, signer)
  @encrypted = encrypted
  @iv = iv
  @signer = signer
end

Public Instance Methods

data() click to toggle source
# File lib/onnistuu_fi/response.rb, line 13
def data
  signer.decrypt(@encrypted, @iv)
end