Class: GPGME::UserID

Inherits:
Object
  • Object
show all
Defined in:
lib/gpgme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment.



1340
1341
1342
# File 'lib/gpgme.rb', line 1340

def comment
  @comment
end

#emailObject (readonly)

Returns the value of attribute email.



1340
1341
1342
# File 'lib/gpgme.rb', line 1340

def email
  @email
end

#nameObject (readonly)

Returns the value of attribute name.



1340
1341
1342
# File 'lib/gpgme.rb', line 1340

def name
  @name
end

#signaturesObject (readonly)

Returns the value of attribute signatures.



1340
1341
1342
# File 'lib/gpgme.rb', line 1340

def signatures
  @signatures
end

#uidObject (readonly)

Returns the value of attribute uid.



1340
1341
1342
# File 'lib/gpgme.rb', line 1340

def uid
  @uid
end

#validityObject (readonly)

Returns the value of attribute validity.



1340
1341
1342
# File 'lib/gpgme.rb', line 1340

def validity
  @validity
end

Instance Method Details

#inspectObject



1350
1351
1352
1353
# File 'lib/gpgme.rb', line 1350

def inspect
  "#<#{self.class} #{name} <#{email}> \
validity=#{VALIDITY_NAMES[validity]}, signatures=#{signatures.inspect}>"
end

#invalid?Boolean

Returns:

  • (Boolean)


1346
1347
1348
# File 'lib/gpgme.rb', line 1346

def invalid?
  @invalid == 1
end

#revoked?Boolean

Returns:

  • (Boolean)


1342
1343
1344
# File 'lib/gpgme.rb', line 1342

def revoked?
  @revoked == 1
end