Class: SSO::SamlToken
- Inherits:
-
Object
- Object
- SSO::SamlToken
- Defined in:
- /build/mts/release/bora-4571906/vcsuite-sdks/ruby/samples/lib/sso.rb
Overview
Holds a SAML token.
Instance Attribute Summary (collapse)
-
- (Object) xml
readonly
Returns the value of attribute xml.
Instance Method Summary (collapse)
-
- (SamlToken) initialize(xml)
constructor
Creates a new instance.
-
- (Object) to_s
TODO: add some getters for interesting content.
Constructor Details
- (SamlToken) initialize(xml)
Creates a new instance.
250 251 252 |
# File '/build/mts/release/bora-4571906/vcsuite-sdks/ruby/samples/lib/sso.rb', line 250 def initialize(xml) @xml = xml end |
Instance Attribute Details
- (Object) xml (readonly)
Returns the value of attribute xml
247 248 249 |
# File '/build/mts/release/bora-4571906/vcsuite-sdks/ruby/samples/lib/sso.rb', line 247 def xml @xml end |
Instance Method Details
- (Object) to_s
TODO: add some getters for interesting content
256 257 258 259 260 |
# File '/build/mts/release/bora-4571906/vcsuite-sdks/ruby/samples/lib/sso.rb', line 256 def to_s esc_token = xml.to_xml(:indent => 0, :encoding => 'UTF-8') esc_token = esc_token.gsub(/\n/, '') esc_token end |