Class: RSAML::Protocol::IDPEntry
- Inherits:
-
Object
- Object
- RSAML::Protocol::IDPEntry
- Defined in:
- lib/rsaml/protocol/idp_entry.rb
Instance Attribute Summary collapse
-
#provider_id ⇒ Object
Returns the value of attribute provider_id.
Instance Method Summary collapse
-
#initialize(provider_id) ⇒ IDPEntry
constructor
Initialize the IDP entry.
-
#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object
Construct an XML fragment representing the idp list.
Constructor Details
#initialize(provider_id) ⇒ IDPEntry
Initialize the IDP entry
7 8 9 |
# File 'lib/rsaml/protocol/idp_entry.rb', line 7 def initialize(provider_id) @provider_id = provider_id end |
Instance Attribute Details
#provider_id ⇒ Object
Returns the value of attribute provider_id.
4 5 6 |
# File 'lib/rsaml/protocol/idp_entry.rb', line 4 def provider_id @provider_id end |
Instance Method Details
#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object
Construct an XML fragment representing the idp list
12 13 14 15 |
# File 'lib/rsaml/protocol/idp_entry.rb', line 12 def to_xml(xml=Builder::XmlMarkup.new) attributes = {'ProviderID' => provider_id} xml.tag!('samlp:IDPEntry', attributes) end |