Class: SSO::SamlToken
- Inherits:
-
Object
- Object
- SSO::SamlToken
- Defined in:
- lib/sso.rb
Overview
Holds a SAML token.
Instance Attribute Summary collapse
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(xml) ⇒ SamlToken
constructor
Creates a new instance.
-
#to_s ⇒ Object
TODO: add some getters for interesting content.
Constructor Details
#initialize(xml) ⇒ SamlToken
Creates a new instance.
238 239 240 |
# File 'lib/sso.rb', line 238 def initialize(xml) @xml = xml end |
Instance Attribute Details
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
235 236 237 |
# File 'lib/sso.rb', line 235 def xml @xml end |
Instance Method Details
#to_s ⇒ Object
TODO: add some getters for interesting content
244 245 246 247 248 |
# File 'lib/sso.rb', line 244 def to_s esc_token = xml.to_xml(indent: 0, encoding: "UTF-8") esc_token = esc_token.delete("\n") esc_token end |