Class: Spid::Metadata
- Inherits:
-
Object
- Object
- Spid::Metadata
- Defined in:
- lib/spid/metadata.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#sp_metadata ⇒ Object
readonly
Returns the value of attribute sp_metadata.
Instance Method Summary collapse
-
#initialize ⇒ Metadata
constructor
A new instance of Metadata.
- #service_provider ⇒ Object
- #settings ⇒ Object
- #to_xml ⇒ Object
Constructor Details
#initialize ⇒ Metadata
Returns a new instance of Metadata.
7 8 9 |
# File 'lib/spid/metadata.rb', line 7 def initialize @sp_metadata = Spid::Saml2::SPMetadata.new(settings: settings) end |
Instance Attribute Details
#sp_metadata ⇒ Object (readonly)
Returns the value of attribute sp_metadata.
5 6 7 |
# File 'lib/spid/metadata.rb', line 5 def @sp_metadata end |
Instance Method Details
#service_provider ⇒ Object
22 23 24 |
# File 'lib/spid/metadata.rb', line 22 def service_provider @service_provider ||= Spid.configuration.service_provider end |
#settings ⇒ Object
11 12 13 14 15 16 |
# File 'lib/spid/metadata.rb', line 11 def settings @settings ||= Spid::Saml2::Settings.new( service_provider: service_provider, identity_provider: nil ) end |
#to_xml ⇒ Object
18 19 20 |
# File 'lib/spid/metadata.rb', line 18 def to_xml .to_saml end |