class SmartId::Api::Response
Attributes
session_id[R]
Public Class Methods
new(response_body, authentication_hash)
click to toggle source
# File lib/smart_id/api/response.rb, line 5 def initialize(response_body, authentication_hash) @body = response_body @session_id = response_body["sessionID"] @authentication_hash = authentication_hash end
Public Instance Methods
verification_code()
click to toggle source
# File lib/smart_id/api/response.rb, line 11 def verification_code @verification_code ||= SmartId::VerificationCodeCalculator.calculate(@authentication_hash.calculate_digest) end