Class: ZATCA::UBL::Signing::InvoiceSignedDataReference
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- ZATCA::UBL::Signing::InvoiceSignedDataReference
- Defined in:
- lib/zatca/ubl/signing/invoice_signed_data_reference.rb
Constant Summary
Constants inherited from BaseComponent
BaseComponent::ArrayOfBaseComponentOrNil
Instance Attribute Summary collapse
-
#digest_value ⇒ Object
Returns the value of attribute digest_value.
Attributes inherited from BaseComponent
Instance Method Summary collapse
- #attributes ⇒ Object
- #elements ⇒ Object
-
#initialize(digest_value:) ⇒ InvoiceSignedDataReference
constructor
A new instance of InvoiceSignedDataReference.
- #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(digest_value:) ⇒ InvoiceSignedDataReference
Returns a new instance of InvoiceSignedDataReference.
4 5 6 7 |
# File 'lib/zatca/ubl/signing/invoice_signed_data_reference.rb', line 4 def initialize(digest_value:) super() @digest_value = digest_value end |
Instance Attribute Details
#digest_value ⇒ Object
Returns the value of attribute digest_value.
2 3 4 |
# File 'lib/zatca/ubl/signing/invoice_signed_data_reference.rb', line 2 def digest_value @digest_value end |
Instance Method Details
#attributes ⇒ Object
13 14 15 16 17 18 |
# File 'lib/zatca/ubl/signing/invoice_signed_data_reference.rb', line 13 def attributes { "Id" => "invoiceSignedData", "URI" => "" } end |
#elements ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/zatca/ubl/signing/invoice_signed_data_reference.rb', line 20 def elements [ ZATCA::UBL::BaseComponent.new(name: "ds:Transforms", elements: transform_elements), ZATCA::UBL::BaseComponent.new(name: "ds:DigestMethod", attributes: {"Algorithm" => "http://www.w3.org/2001/04/xmlenc#sha256"}), ZATCA::UBL::BaseComponent.new(name: "ds:DigestValue", value: @digest_value) ] end |
#name ⇒ Object
9 10 11 |
# File 'lib/zatca/ubl/signing/invoice_signed_data_reference.rb', line 9 def name "ds:Reference" end |