Class: GPGME::ImportStatus

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#fprObject (readonly) Also known as: fingerprint

Returns the value of attribute fpr.



54
55
56
# File 'lib/gpgme/misc.rb', line 54

def fpr
  @fpr
end

#resultObject (readonly)

Returns the value of attribute result.



54
55
56
# File 'lib/gpgme/misc.rb', line 54

def result
  @result
end

#statusObject (readonly)

Returns the value of attribute status.



54
55
56
# File 'lib/gpgme/misc.rb', line 54

def status
  @status
end

Class Method Details

.new_from_struct(struct) ⇒ Object



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

def self.new_from_struct(struct)
  instance = allocate

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

  instance
end