Class: GPGME::KeySig
- Inherits:
-
Object
- Object
- GPGME::KeySig
- Defined in:
- lib/gpgme/key_sig.rb,
ext/gpgme/gpgme_n.c
Instance Attribute Summary (collapse)
-
- (Object) keyid
readonly
Returns the value of attribute keyid.
-
- (Object) pubkey_algo
readonly
Returns the value of attribute pubkey_algo.
Instance Method Summary (collapse)
- - (Boolean) expired?
- - (Object) expires
- - (Boolean) exportable?
- - (Object) inspect
- - (Boolean) invalid?
- - (Boolean) revoked?
- - (Object) timestamp
Instance Attribute Details
- (Object) keyid (readonly)
Returns the value of attribute keyid
5 6 7 |
# File 'lib/gpgme/key_sig.rb', line 5 def keyid @keyid end |
- (Object) pubkey_algo (readonly)
Returns the value of attribute pubkey_algo
5 6 7 |
# File 'lib/gpgme/key_sig.rb', line 5 def pubkey_algo @pubkey_algo end |
Instance Method Details
- (Boolean) expired?
11 12 13 |
# File 'lib/gpgme/key_sig.rb', line 11 def expired? @expired == 1 end |
- (Object) expires
27 28 29 |
# File 'lib/gpgme/key_sig.rb', line 27 def expires Time.at(@expires) end |
- (Boolean) exportable?
19 20 21 |
# File 'lib/gpgme/key_sig.rb', line 19 def exportable? @exportable == 1 end |
- (Object) inspect
31 32 33 |
# File 'lib/gpgme/key_sig.rb', line 31 def inspect "#<#{self.class} #{keyid} timestamp=#{}, expires=#{expires}>" end |
- (Boolean) invalid?
15 16 17 |
# File 'lib/gpgme/key_sig.rb', line 15 def invalid? @invalid == 1 end |
- (Boolean) revoked?
7 8 9 |
# File 'lib/gpgme/key_sig.rb', line 7 def revoked? @revoked == 1 end |
- (Object) timestamp
23 24 25 |
# File 'lib/gpgme/key_sig.rb', line 23 def Time.at(@timestamp) end |