Class: GPGME::EncryptResult
- Inherits:
-
Object
- Object
- GPGME::EncryptResult
- Defined in:
- lib/gpgme/misc.rb,
lib/gpgme/ffi/encrypt_result.rb
Instance Attribute Summary collapse
-
#invalid_recipients ⇒ Object
readonly
Returns the value of attribute invalid_recipients.
Class Method Summary collapse
Instance Attribute Details
#invalid_recipients ⇒ Object (readonly)
Returns the value of attribute invalid_recipients.
30 31 32 |
# File 'lib/gpgme/misc.rb', line 30 def invalid_recipients @invalid_recipients end |
Class Method Details
.new_from_struct(struct) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/gpgme/ffi/encrypt_result.rb', line 3 def self.new_from_struct(struct) instance = allocate instance.instance_exec do @invalid_recipients = [] pointer = struct[:invalid_recipients] until pointer.null? key = Library::InvalidKey.new pointer @invalid_recipients << InvalidKey.new_from_struct(key) pointer = key[:next] end end instance end |