Sha256: 1732ee425af0640ee1f170ff500ab6bef34cbc5f6a877afccc3713b9a009e85d

Contents?: true

Size: 248 Bytes

Versions: 14

Compression:

Stored size: 248 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
certificate_authority-1.1.0 lib/certificate_authority/revocable.rb
certificate_authority-1.0.0 lib/certificate_authority/revocable.rb
leap_cli-1.9.2 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.9.1 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.9 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.8.1 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.8 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.7.4 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.7.3 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.6.2 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.5.6 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.5.1 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.5.0 vendor/certificate_authority/lib/certificate_authority/revocable.rb
leap_cli-1.2.5 vendor/certificate_authority/lib/certificate_authority/revocable.rb