Class: RSAML::Protocol::IDPEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/rsaml/protocol/idp_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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