Sha256: 00496c54b963044d7383612b520c7bda8c887385f2233964e759b2b10265218a

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

module Saml
  module Kit
    # {include:file:spec/saml/invalid_document_spec.rb}
    class InvalidDocument < Document
      validate do |model|
        model.errors[:base] << model.error_message(:invalid)
      end

      def initialize(xml, configuration: nil)
        super(xml, name: 'InvalidDocument')
      end

      def to_h
        super
      rescue StandardError
        {}
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
saml-kit-1.0.9 lib/saml/kit/invalid_document.rb
saml-kit-1.0.8 lib/saml/kit/invalid_document.rb
saml-kit-1.0.7 lib/saml/kit/invalid_document.rb