Class: ZATCA::UBL::Signing::UBLDocumentSignatures
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- ZATCA::UBL::Signing::UBLDocumentSignatures
- Defined in:
- lib/zatca/ubl/signing/ubl_document_signatures.rb
Constant Summary
Constants inherited from BaseComponent
BaseComponent::ArrayOfBaseComponentOrNil
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
- #attributes ⇒ Object
- #elements ⇒ Object
-
#initialize(signature:) ⇒ UBLDocumentSignatures
constructor
A new instance of UBLDocumentSignatures.
- #name ⇒ Object
Methods inherited from BaseComponent
#[], build, #build_xml, #dig, #find_nested_element_by_path, #generate_xml, #schema, #to_h, #to_xml
Constructor Details
#initialize(signature:) ⇒ UBLDocumentSignatures
Returns a new instance of UBLDocumentSignatures.
2 3 4 5 6 |
# File 'lib/zatca/ubl/signing/ubl_document_signatures.rb', line 2 def initialize(signature:) super() @signature = signature end |
Instance Method Details
#attributes ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/zatca/ubl/signing/ubl_document_signatures.rb', line 12 def attributes { "xmlns:sig" => "urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2", "xmlns:sac" => "urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2", "xmlns:sbc" => "urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2" } end |
#elements ⇒ Object
20 21 22 23 24 |
# File 'lib/zatca/ubl/signing/ubl_document_signatures.rb', line 20 def elements [ ZATCA::UBL::Signing::SignatureInformation.new(signature: @signature) ] end |
#name ⇒ Object
8 9 10 |
# File 'lib/zatca/ubl/signing/ubl_document_signatures.rb', line 8 def name "sig:UBLDocumentSignatures" end |