Class: Saml::Kit::InvalidDocument
- Defined in:
- lib/saml/kit/invalid_document.rb
Overview
This class represents an invalid SAML document that could not be parsed.
Constant Summary
Constants inherited from Document
Document::CONSTRUCTORS, Document::XPATH
Constants included from XsdValidatable
XsdValidatable::METADATA_XSD, XsdValidatable::PROTOCOL_XSD
Constants included from XmlParseable
Instance Attribute Summary
Attributes inherited from Document
Instance Method Summary collapse
-
#initialize(xml) ⇒ InvalidDocument
constructor
A new instance of InvalidDocument.
- #to_h ⇒ Object
Methods inherited from Document
#destination, #id, #issue_instant, #issuer, to_saml_document, #version
Methods included from XmlParseable
#present?, #to_s, #to_xhtml, #to_xml
Methods included from Trustable
Constructor Details
#initialize(xml) ⇒ InvalidDocument
Returns a new instance of InvalidDocument.
13 14 15 |
# File 'lib/saml/kit/invalid_document.rb', line 13 def initialize(xml, *) super(xml, name: 'InvalidDocument') end |
Instance Method Details
#to_h ⇒ Object
17 18 19 20 21 |
# File 'lib/saml/kit/invalid_document.rb', line 17 def to_h super rescue StandardError {} end |