Class: GPGME::VerifyResult

Inherits:
Object
  • Object
show all
Defined in:
lib/gpgme/misc.rb,
lib/gpgme/ffi/verify_result.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#signaturesObject (readonly)

Returns the value of attribute signatures.



12
13
14
# File 'lib/gpgme/misc.rb', line 12

def signatures
  @signatures
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/verify_result.rb', line 3

def self.new_from_struct(struct)
  instance = allocate

  instance.instance_exec do
    @signatures = []

    pointer = struct[:signatures]
    until pointer.null?
      signature = Library::Signature.new pointer

      @signatures << Signature.new_from_struct(signature)

      pointer = signature[:next]
    end
  end

  instance
end