Class: GPGME::UserID

Inherits:
Object
  • Object
show all
Defined in:
lib/gpgme/user_id.rb,
ext/gpgme/gpgme_n.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment.



5
6
7
# File 'lib/gpgme/user_id.rb', line 5

def comment
  @comment
end

#emailObject (readonly)

Returns the value of attribute email.



5
6
7
# File 'lib/gpgme/user_id.rb', line 5

def email
  @email
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/gpgme/user_id.rb', line 5

def name
  @name
end

#signaturesObject (readonly)

Returns the value of attribute signatures.



5
6
7
# File 'lib/gpgme/user_id.rb', line 5

def signatures
  @signatures
end

#uidObject (readonly)

Returns the value of attribute uid.



5
6
7
# File 'lib/gpgme/user_id.rb', line 5

def uid
  @uid
end

#validityObject (readonly)

Returns the value of attribute validity.



5
6
7
# File 'lib/gpgme/user_id.rb', line 5

def validity
  @validity
end

Instance Method Details

#inspectObject



15
16
17
18
# File 'lib/gpgme/user_id.rb', line 15

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

#invalid?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/gpgme/user_id.rb', line 11

def invalid?
  @invalid == 1
end

#revoked?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/gpgme/user_id.rb', line 7

def revoked?
  @revoked == 1
end