blob: eba5d9833b34d1388295a6f35c2e42df48196f2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module CertificateAuthority
module Revocable
attr_accessor :revoked_at
def revoke!(time=Time.now)
@revoked_at = time
end
def revoked?
# If we have a time, then we're revoked
!@revoked_at.nil?
end
end
end
|