Class: XmlSig::Transform

Inherits:
Object
  • Object
show all
Defined in:
lib/xml_sig/transform.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#algorithmObject

Returns the value of attribute algorithm.



3
4
5
# File 'lib/xml_sig/transform.rb', line 3

def algorithm
  @algorithm
end

#xpathObject

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