Commit a836be8
Changed files (4)
lib
saml
lib/saml/kit/document.rb
@@ -59,7 +59,7 @@ module Saml
# Returns the SAML document returned as a Hash.
def to_h
- @xml_hash ||= Hash.from_xml(content) || {}
+ @to_h ||= Hash.from_xml(content) || {}
end
# Returns the SAML document as an XML string.
@@ -77,7 +77,7 @@ module Saml
# @!visibility private
def to_nokogiri
- @nokogiri ||= Nokogiri::XML(content)
+ @to_nokogiri ||= Nokogiri::XML(content)
end
# @!visibility private
lib/saml/kit/metadata.rb
@@ -148,7 +148,7 @@ module Saml
# Returns the XML document converted to a Hash.
def to_h
- @xml_hash ||= Hash.from_xml(to_xml)
+ @to_h ||= Hash.from_xml(to_xml)
end
# Returns the XML document as a String.
@@ -210,7 +210,7 @@ module Saml
# @!visibility private
def to_nokogiri
- @nokogiri ||= Nokogiri::XML(xml)
+ @to_nokogiri ||= Nokogiri::XML(xml)
end
def at_xpath(xpath)
lib/saml/kit/signature.rb
@@ -62,7 +62,7 @@ module Saml
# Returns the XML Hash.
def to_h
- @xml_hash ||= present? ? Hash.from_xml(to_xml)['Signature'] : {}
+ @to_h ||= present? ? Hash.from_xml(to_xml)['Signature'] : {}
end
def present?
lib/saml/kit.rb
@@ -51,7 +51,7 @@ module Saml
module Kit
class << self
def configuration
- @config ||= Saml::Kit::Configuration.new
+ @configuration ||= Saml::Kit::Configuration.new
end
def configure