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

- (Object) comment (readonly)

Returns the value of attribute comment



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

def comment
  @comment
end

- (Object) email (readonly)

Returns the value of attribute email



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

def email
  @email
end

- (Object) name (readonly)

Returns the value of attribute name



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

def name
  @name
end

- (Object) signatures (readonly)

Returns the value of attribute signatures



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

def signatures
  @signatures
end

- (Object) uid (readonly)

Returns the value of attribute uid



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

def uid
  @uid
end

- (Object) validity (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

- (Object) inspect



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

- (Boolean) invalid?

Returns:

  • (Boolean)


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

def invalid?
  @invalid == 1
end

- (Boolean) revoked?

Returns:

  • (Boolean)


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

def revoked?
  @revoked == 1
end