18F/identity-idp

View on GitHub
app/services/x509/attribute.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require 'stringex/unidecoder'
require 'stringex/core_ext'

module X509
  class Attribute
    attr_accessor :raw, :norm

    def initialize(raw: nil, norm: nil)
      @raw = raw
      @norm = norm
    end

    delegate :blank?, :present?, :to_s, :to_date, :==, :eql?, to: :raw
    alias_method :to_str, :to_s
  end
end