Sha256: 4847f7b544e554ba92600552cb7351b3410151fecd175b2067a4be8b1a741b83

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

Version Path
saml-kit-1.0.11 lib/saml/kit/invalid_document.rb
saml-kit-1.0.10 lib/saml/kit/invalid_document.rb