Class: ZATCA::UBL::Signing::UBLExtension
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- ZATCA::UBL::Signing::UBLExtension
- Defined in:
- lib/zatca/ubl/signing/ubl_extension.rb
Constant Summary
Constants inherited from BaseComponent
BaseComponent::ArrayOfBaseComponentOrNil
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
- #elements ⇒ Object
-
#initialize(signature:) ⇒ UBLExtension
constructor
A new instance of UBLExtension.
- #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:) ⇒ UBLExtension
Returns a new instance of UBLExtension.
2 3 4 5 6 |
# File 'lib/zatca/ubl/signing/ubl_extension.rb', line 2 def initialize(signature:) super() @signature = signature end |
Instance Method Details
#elements ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/zatca/ubl/signing/ubl_extension.rb', line 12 def elements [ ZATCA::UBL::BaseComponent.new(name: "ext:ExtensionURI", value: "urn:oasis:names:specification:ubl:dsig:enveloped:xades"), ZATCA::UBL::BaseComponent.new(name: "ext:ExtensionContent", elements: [ ZATCA::UBL::Signing::UBLDocumentSignatures.new(signature: @signature) ]) ] end |
#name ⇒ Object
8 9 10 |
# File 'lib/zatca/ubl/signing/ubl_extension.rb', line 8 def name "ext:UBLExtension" end |