Class: PkiExpress::PadesSignature
- Inherits:
-
Object
- Object
- PkiExpress::PadesSignature
- Defined in:
- lib/pki_express/pades_signature.rb
Instance Attribute Summary collapse
-
#signers ⇒ Object
Returns the value of attribute signers.
Instance Method Summary collapse
-
#initialize(model) ⇒ PadesSignature
constructor
A new instance of PadesSignature.
Constructor Details
#initialize(model) ⇒ PadesSignature
Returns a new instance of PadesSignature.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/pki_express/pades_signature.rb', line 5 def initialize(model) @signers = [] unless model.nil? signers = model.fetch(:signers) if signers @signers = signers.map { |s| PadesSignerInfo.new(s) } end end end |
Instance Attribute Details
#signers ⇒ Object
Returns the value of attribute signers.
3 4 5 |
# File 'lib/pki_express/pades_signature.rb', line 3 def signers @signers end |