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.



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

def initialize(xml)
  @xml = xml
end

Instance Attribute Details

#xmlObject (readonly)

Returns the value of attribute xml.



235
236
237
# File 'lib/sso.rb', line 235

def xml
  @xml
end

Instance Method Details

#to_sObject

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