Method: RSAML::Protocol::Scoping#to_xml
- Defined in:
- lib/rsaml/protocol/scoping.rb
#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object
Construct an XML fragment representing the scoping
23 24 25 26 27 28 29 30 |
# File 'lib/rsaml/protocol/scoping.rb', line 23 def to_xml(xml=Builder::XmlMarkup.new) attributes = {} attributes['ProxyCount'] = proxy_count if proxy_count xml.tag!('samlp:Scoping', attributes) { xml << idp_list.to_xml if idp_list requestor_ids.each { |requestor_id| xml << requestor_id.to_xml } } end |