Sha256: a3de9b7138b4e82b05c365e12e89b540b9a1b15ccc0490ab176f8d5075a65f47
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
# frozen_string_literal: true module Saml module Kit # This class represents an invalid SAML # document that could not be parsed. # {include:file:spec/saml/kit/invalid_document_spec.rb} class InvalidDocument < Document validate do |model| model.errors.add(:base, model.error_message(:invalid)) end def initialize(xml, *) super(xml, name: 'InvalidDocument') end def to_h super rescue StandardError {} end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saml-kit-1.3.0 | lib/saml/kit/invalid_document.rb |
saml-kit-1.2.0 | lib/saml/kit/invalid_document.rb |