Commit bdfc930

mo <mo@mokhan.ca>
2017-12-13 20:08:08
pass in parent hash.
1 parent 6dd651c
Changed files (2)
lib/saml/kit/assertion.rb
@@ -1,9 +1,8 @@
 module Saml
   module Kit
     class Assertion
-      def initialize(xml)
-        @xml = xml
-        @xml_hash = Hash.from_xml(xml) || {}
+      def initialize(xml_hash)
+        @xml_hash = xml_hash
       end
 
       def name_id
lib/saml/kit/response.rb
@@ -23,7 +23,7 @@ module Saml
       end
 
       def assertion
-        @assertion = Saml::Kit::Assertion.new(content)
+        @assertion = Saml::Kit::Assertion.new(to_h)
       end
 
       def signed?