Class: Tanker::CTanker::COIDCVerification
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Tanker::CTanker::COIDCVerification
- Defined in:
- lib/tanker/c_tanker/c_verification.rb
Instance Method Summary collapse
-
#initialize(subject, provider_id) ⇒ COIDCVerification
constructor
A new instance of COIDCVerification.
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 |