Class: GPGME::InvalidKey

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#fprObject (readonly) Also known as: fingerprint

Returns the value of attribute fpr.



36
37
38
# File 'lib/gpgme/misc.rb', line 36

def fpr
  @fpr
end

#reasonObject (readonly)

Returns the value of attribute reason.



36
37
38
# File 'lib/gpgme/misc.rb', line 36

def reason
  @reason
end

Class Method Details

.new_from_struct(struct) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/gpgme/ffi/invalid_key.rb', line 3

def self.new_from_struct(struct)
  instance = allocate

  instance.instance_exec do
    @fpr    = struct[:fpr]
    @reason = struct[:reason]
  end

  instance
end