Class: GPGME::ImportResult
- Inherits:
-
Object
- Object
- GPGME::ImportResult
- Defined in:
- lib/gpgme/misc.rb,
lib/gpgme/ffi/import_result.rb
Instance Attribute Summary collapse
-
#considered ⇒ Object
readonly
Returns the value of attribute considered.
-
#imported ⇒ Object
readonly
Returns the value of attribute imported.
-
#imported_rsa ⇒ Object
readonly
Returns the value of attribute imported_rsa.
-
#imports ⇒ Object
readonly
Returns the value of attribute imports.
-
#new_revocations ⇒ Object
readonly
Returns the value of attribute new_revocations.
-
#new_signatures ⇒ Object
readonly
Returns the value of attribute new_signatures.
-
#new_sub_keys ⇒ Object
readonly
Returns the value of attribute new_sub_keys.
-
#new_user_ids ⇒ Object
readonly
Returns the value of attribute new_user_ids.
-
#no_user_id ⇒ Object
readonly
Returns the value of attribute no_user_id.
-
#not_imported ⇒ Object
readonly
Returns the value of attribute not_imported.
-
#secret_imported ⇒ Object
readonly
Returns the value of attribute secret_imported.
-
#secret_read ⇒ Object
readonly
Returns the value of attribute secret_read.
-
#secret_unchanged ⇒ Object
readonly
Returns the value of attribute secret_unchanged.
-
#unchanged ⇒ Object
readonly
Returns the value of attribute unchanged.
Class Method Summary collapse
Instance Attribute Details
#considered ⇒ Object (readonly)
Returns the value of attribute considered.
61 62 63 |
# File 'lib/gpgme/misc.rb', line 61 def considered @considered end |
#imported ⇒ Object (readonly)
Returns the value of attribute imported.
61 62 63 |
# File 'lib/gpgme/misc.rb', line 61 def imported @imported end |
#imported_rsa ⇒ Object (readonly)
Returns the value of attribute imported_rsa.
61 62 63 |
# File 'lib/gpgme/misc.rb', line 61 def imported_rsa @imported_rsa end |
#imports ⇒ Object (readonly)
Returns the value of attribute imports.
64 65 66 |
# File 'lib/gpgme/misc.rb', line 64 def imports @imports end |
#new_revocations ⇒ Object (readonly)
Returns the value of attribute new_revocations.
62 63 64 |
# File 'lib/gpgme/misc.rb', line 62 def new_revocations @new_revocations end |
#new_signatures ⇒ Object (readonly)
Returns the value of attribute new_signatures.
62 63 64 |
# File 'lib/gpgme/misc.rb', line 62 def new_signatures @new_signatures end |
#new_sub_keys ⇒ Object (readonly)
Returns the value of attribute new_sub_keys.
62 63 64 |
# File 'lib/gpgme/misc.rb', line 62 def new_sub_keys @new_sub_keys end |
#new_user_ids ⇒ Object (readonly)
Returns the value of attribute new_user_ids.
62 63 64 |
# File 'lib/gpgme/misc.rb', line 62 def new_user_ids @new_user_ids end |
#no_user_id ⇒ Object (readonly)
Returns the value of attribute no_user_id.
61 62 63 |
# File 'lib/gpgme/misc.rb', line 61 def no_user_id @no_user_id end |
#not_imported ⇒ Object (readonly)
Returns the value of attribute not_imported.
64 65 66 |
# File 'lib/gpgme/misc.rb', line 64 def not_imported @not_imported end |
#secret_imported ⇒ Object (readonly)
Returns the value of attribute secret_imported.
63 64 65 |
# File 'lib/gpgme/misc.rb', line 63 def secret_imported @secret_imported end |
#secret_read ⇒ Object (readonly)
Returns the value of attribute secret_read.
63 64 65 |
# File 'lib/gpgme/misc.rb', line 63 def secret_read @secret_read end |
#secret_unchanged ⇒ Object (readonly)
Returns the value of attribute secret_unchanged.
63 64 65 |
# File 'lib/gpgme/misc.rb', line 63 def secret_unchanged @secret_unchanged end |
#unchanged ⇒ Object (readonly)
Returns the value of attribute unchanged.
61 62 63 |
# File 'lib/gpgme/misc.rb', line 61 def unchanged @unchanged 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 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gpgme/ffi/import_result.rb', line 3 def self.new_from_struct(struct) instance = allocate instance.instance_exec do @considered = struct[:considered] @no_user_id = struct[:no_user_id] @imported = struct[:imported] @imported_rsa = struct[:imported_rsa] @unchanged = struct[:unchanged] @new_user_ids = struct[:new_user_ids] @new_sub_keys = struct[:new_sub_keys] @new_signatures = struct[:new_signatures] @new_revocations = struct[:new_revocations] @secret_read = struct[:secret_read] @secret_imported = struct[:secret_imported] @secret_unchanged = struct[:secret_unchanged] @not_imported = struct[:not_imported] @imports = [] pointer = struct[:imports] until pointer.null? status = Library::ImportStatus.new pointer @imports << ImportStatus.new_from_struct(status) pointer = status[:next] end end instance end |