Class: Moxml::Signature::Model::AlgorithmMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/moxml/signature/model/algorithm_method.rb

Overview

Generic algorithm method element. Used for CanonicalizationMethod and SignatureMethod, both of which are <Foo Algorithm="uri" /> shape.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(algorithm:, parameters: {}) ⇒ AlgorithmMethod

Returns a new instance of AlgorithmMethod.



11
12
13
14
# File 'lib/moxml/signature/model/algorithm_method.rb', line 11

def initialize(algorithm:, parameters: {})
  @algorithm = algorithm
  @parameters = parameters
end

Instance Attribute Details

#algorithmObject

Returns the value of attribute algorithm.



9
10
11
# File 'lib/moxml/signature/model/algorithm_method.rb', line 9

def algorithm
  @algorithm
end

#parametersObject

Returns the value of attribute parameters.



9
10
11
# File 'lib/moxml/signature/model/algorithm_method.rb', line 9

def parameters
  @parameters
end