Class: SSO::SamlToken

Inherits:
Object
  • Object
show all
Defined in:
lib/sso.rb

Overview

Holds a SAML token.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#xmlObject (readonly)

Returns the value of attribute xml.



239
240
241
# File 'lib/sso.rb', line 239

def xml
  @xml
end

Instance Method Details

#to_sObject

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