Sha256: 49ab7261bf405ef90376e9a4a604a448760f5dfc43b973b8f64a533e94c9cede

Contents?: true

Size: 642 Bytes

Versions: 2

Compression:

Stored size: 642 Bytes

Contents

# frozen_string_literal: true

module Saml
  module Kit
    class Document
      TABLE = {
        'ID' => ->(x) { x.id },
        'Issuer' => ->(x) { x.issuer },
        'Version' => ->(x) { x.version },
        'Issue Instant' => ->(x) { x.issue_instant.iso8601 },
        'Type' => ->(x) { x.name },
        'Valid' => ->(x) { x.valid? },
        'Signed?' => ->(x) { x.signed? },
        'Trusted?' => ->(x) { x.trusted? },
      }.freeze

      def build_table(table = [])
        TABLE.each do |key, callable|
          table.push([key, callable.call(self)])
        end
        signature.build_table(table)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saml-kit-cli-0.3.8 lib/saml/kit/core_ext/document.rb
saml-kit-cli-0.3.7 lib/saml/kit/core_ext/document.rb