Represents a GPG key with its metadata
Constructors
new(fingerprint :
String, keyid :
String, can_encrypt :
Bool, can_sign :
Bool, can_certify :
Bool, can_authenticate :
Bool, is_secret :
Bool, is_expired :
Bool, is_revoked :
Bool, is_disabled :
Bool, is_invalid :
Bool, user_ids :
Array(
GPGME::UserID), subkeys :
Array(
GPGME::SubKey))
SourceInstance methods
email
Returns the primary email address
Sourceprimary_uid
Returns the primary user ID (name and email)
SourceAppends a short String representation of this object
which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source