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.



1391
1392
1393
# File 'lib/gpgme.rb', line 1391

def comment
  @comment
end

#emailObject (readonly)

Returns the value of attribute email.



1391
1392
1393
# File 'lib/gpgme.rb', line 1391

def email
  @email
end

#nameObject (readonly)

Returns the value of attribute name.



1391
1392
1393
# File 'lib/gpgme.rb', line 1391

def name
  @name
end

#signaturesObject (readonly)

Returns the value of attribute signatures.



1391
1392
1393
# File 'lib/gpgme.rb', line 1391

def signatures
  @signatures
end

#uidObject (readonly)

Returns the value of attribute uid.



1391
1392
1393
# File 'lib/gpgme.rb', line 1391

def uid
  @uid
end

#validityObject (readonly)

Returns the value of attribute validity.



1391
1392
1393
# File 'lib/gpgme.rb', line 1391

def validity
  @validity
end

Instance Method Details

#inspectObject



1401
1402
1403
1404
# File 'lib/gpgme.rb', line 1401

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

#invalid?Boolean

Returns:

  • (Boolean)


1397
1398
1399
# File 'lib/gpgme.rb', line 1397

def invalid?
  @invalid == 1
end

#revoked?Boolean

Returns:

  • (Boolean)


1393
1394
1395
# File 'lib/gpgme.rb', line 1393

def revoked?
  @revoked == 1
end