Class: XmlSig::Transform
- Inherits:
-
Object
- Object
- XmlSig::Transform
- Defined in:
- lib/xml_sig/transform.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#xpath ⇒ Object
Returns the value of attribute xpath.
Instance Method Summary collapse
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
3 4 5 |
# File 'lib/xml_sig/transform.rb', line 3 def algorithm @algorithm end |
#xpath ⇒ Object
Returns the value of attribute xpath.
4 5 6 |
# File 'lib/xml_sig/transform.rb', line 4 def xpath @xpath end |
Instance Method Details
#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/xml_sig/transform.rb', line 6 def to_xml(xml=Builder::XmlMarkup.new) attributes = {'Algorightm' => algorithm} xml.tag!('ds:Transform', attributes) { xml.tag!('ds:XPath', xpath) unless xpath.nil? } end |