Class: Tanker::CTanker::COIDCVerification

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/tanker/c_tanker/c_verification.rb

Instance Method Summary collapse

Constructor Details

#initialize(subject, provider_id) ⇒ COIDCVerification

Returns a new instance of COIDCVerification.



50
51
52
53
54
55
56
57
58
59
60
# File 'lib/tanker/c_tanker/c_verification.rb', line 50

def initialize(subject, provider_id)
  super()

  # NOTE: Instance variables are required to keep the CStrings alive
  @subject = CTanker.new_cstring subject
  @provider_id = CTanker.new_cstring provider_id

  self[:version] = 1
  self[:subject] = @subject
  self[:provider_id] = @provider_id
end