Class: Xmldsig_fiscalizer::Canonicalizer

Inherits:
Object
  • Object
show all
Defined in:
lib/xmldsig_fiscalizer/canonicalizer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, method = nil, inclusive_namespaces = []) ⇒ Canonicalizer

Returns a new instance of Canonicalizer.



5
6
7
8
9
# File 'lib/xmldsig_fiscalizer/canonicalizer.rb', line 5

def initialize(node, method = nil, inclusive_namespaces = [])
  @node = node
  @method = method
  @inclusive_namespaces = inclusive_namespaces
end

Instance Attribute Details

#inclusive_namespacesObject

Returns the value of attribute inclusive_namespaces.



3
4
5
# File 'lib/xmldsig_fiscalizer/canonicalizer.rb', line 3

def inclusive_namespaces
  @inclusive_namespaces
end

#methodObject

Returns the value of attribute method.



3
4
5
# File 'lib/xmldsig_fiscalizer/canonicalizer.rb', line 3

def method
  @method
end

#nodeObject

Returns the value of attribute node.



3
4
5
# File 'lib/xmldsig_fiscalizer/canonicalizer.rb', line 3

def node
  @node
end

Instance Method Details

#canonicalizeObject



11
12
13
# File 'lib/xmldsig_fiscalizer/canonicalizer.rb', line 11

def canonicalize
  node.canonicalize(mode(method), inclusive_namespaces)
end