Class: GPGME::KeySig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyidObject (readonly)

Returns the value of attribute keyid.



1410
1411
1412
# File 'lib/gpgme.rb', line 1410

def keyid
  @keyid
end

#pubkey_algoObject (readonly)

Returns the value of attribute pubkey_algo.



1410
1411
1412
# File 'lib/gpgme.rb', line 1410

def pubkey_algo
  @pubkey_algo
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


1416
1417
1418
# File 'lib/gpgme.rb', line 1416

def expired?
  @expired == 1
end

#expiresObject



1432
1433
1434
# File 'lib/gpgme.rb', line 1432

def expires
  Time.at(@expires)
end

#exportable?Boolean

Returns:

  • (Boolean)


1424
1425
1426
# File 'lib/gpgme.rb', line 1424

def exportable?
  @exportable == 1
end

#inspectObject



1436
1437
1438
# File 'lib/gpgme.rb', line 1436

def inspect
  "#<#{self.class} #{keyid} timestamp=#{timestamp}, expires=#{expires}>"
end

#invalid?Boolean

Returns:

  • (Boolean)


1420
1421
1422
# File 'lib/gpgme.rb', line 1420

def invalid?
  @invalid == 1
end

#revoked?Boolean

Returns:

  • (Boolean)


1412
1413
1414
# File 'lib/gpgme.rb', line 1412

def revoked?
  @revoked == 1
end

#timestampObject



1428
1429
1430
# File 'lib/gpgme.rb', line 1428

def timestamp
  Time.at(@timestamp)
end