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.



1359
1360
1361
# File 'lib/gpgme.rb', line 1359

def keyid
  @keyid
end

#pubkey_algoObject (readonly)

Returns the value of attribute pubkey_algo.



1359
1360
1361
# File 'lib/gpgme.rb', line 1359

def pubkey_algo
  @pubkey_algo
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


1365
1366
1367
# File 'lib/gpgme.rb', line 1365

def expired?
  @expired == 1
end

#expiresObject



1381
1382
1383
# File 'lib/gpgme.rb', line 1381

def expires
  Time.at(@expires)
end

#exportable?Boolean

Returns:

  • (Boolean)


1373
1374
1375
# File 'lib/gpgme.rb', line 1373

def exportable?
  @exportable == 1
end

#inspectObject



1385
1386
1387
# File 'lib/gpgme.rb', line 1385

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

#invalid?Boolean

Returns:

  • (Boolean)


1369
1370
1371
# File 'lib/gpgme.rb', line 1369

def invalid?
  @invalid == 1
end

#revoked?Boolean

Returns:

  • (Boolean)


1361
1362
1363
# File 'lib/gpgme.rb', line 1361

def revoked?
  @revoked == 1
end

#timestampObject



1377
1378
1379
# File 'lib/gpgme.rb', line 1377

def timestamp
  Time.at(@timestamp)
end