Class: Saml::Kit::Builders::LogoutResponse
- Inherits:
-
Object
- Object
- Saml::Kit::Builders::LogoutResponse
- Includes:
- XmlTemplatable
- Defined in:
- lib/saml/kit/builders/logout_response.rb
Overview
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#id ⇒ Object
Returns the value of attribute id.
-
#issuer ⇒ Object
Returns the value of attribute issuer.
-
#now ⇒ Object
Returns the value of attribute now.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(request, configuration: Saml::Kit.configuration) ⇒ LogoutResponse
constructor
A new instance of LogoutResponse.
Methods included from XmlTemplatable
#digest_method, #sign?, #signature_method, #signing_key_pair, #template_path
Constructor Details
#initialize(request, configuration: Saml::Kit.configuration) ⇒ LogoutResponse
Returns a new instance of LogoutResponse.
12 13 14 15 16 17 18 19 20 |
# File 'lib/saml/kit/builders/logout_response.rb', line 12 def initialize(request, configuration: Saml::Kit.configuration) @configuration = configuration @id = ::Xml::Kit::Id.generate @issuer = configuration.entity_id @now = Time.now.utc @request = request @status_code = Namespaces::SUCCESS @version = "2.0" end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
10 11 12 |
# File 'lib/saml/kit/builders/logout_response.rb', line 10 def configuration @configuration end |
#destination ⇒ Object
Returns the value of attribute destination.
8 9 10 |
# File 'lib/saml/kit/builders/logout_response.rb', line 8 def destination @destination end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/saml/kit/builders/logout_response.rb', line 8 def id @id end |
#issuer ⇒ Object
Returns the value of attribute issuer.
8 9 10 |
# File 'lib/saml/kit/builders/logout_response.rb', line 8 def issuer @issuer end |
#now ⇒ Object
Returns the value of attribute now.
8 9 10 |
# File 'lib/saml/kit/builders/logout_response.rb', line 8 def now @now end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
9 10 11 |
# File 'lib/saml/kit/builders/logout_response.rb', line 9 def request @request end |
#status_code ⇒ Object
Returns the value of attribute status_code.
8 9 10 |
# File 'lib/saml/kit/builders/logout_response.rb', line 8 def status_code @status_code end |
#version ⇒ Object
Returns the value of attribute version.
8 9 10 |
# File 'lib/saml/kit/builders/logout_response.rb', line 8 def version @version end |
Instance Method Details
#build ⇒ Object
22 23 24 |
# File 'lib/saml/kit/builders/logout_response.rb', line 22 def build Saml::Kit::LogoutResponse.new(to_xml, request_id: request.id) end |