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.
242 243 244 |
# File 'lib/sso.rb', line 242 def initialize(xml) @xml = xml end |
Instance Attribute Details
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
239 240 241 |
# File 'lib/sso.rb', line 239 def xml @xml end |
Instance Method Details
#to_s ⇒ Object
TODO: add some getters for interesting content
248 249 250 251 252 |
# File 'lib/sso.rb', line 248 def to_s esc_token = xml.to_xml(indent: 0, encoding: "UTF-8") esc_token = esc_token.delete("\n") esc_token end |