Class: ZATCA::UBL::Signing::Object

Inherits:
BaseComponent show all
Defined in:
lib/zatca/ubl/signing/object.rb

Constant Summary

Constants inherited from BaseComponent

BaseComponent::ArrayOfBaseComponentOrNil

Instance Attribute Summary

Attributes inherited from BaseComponent

#attributes, #index, #value

Instance Method Summary collapse

Methods inherited from BaseComponent

#[], build, #build_xml, #dig, #find_nested_element_by_path, #generate_xml, #schema, #to_h, #to_xml

Constructor Details

#initialize(signing_time:, cert_digest_value:, cert_issuer_name:, cert_serial_number:) ⇒ Object

Returns a new instance of Object.



2
3
4
5
6
7
8
9
# File 'lib/zatca/ubl/signing/object.rb', line 2

def initialize(signing_time:, cert_digest_value:, cert_issuer_name:, cert_serial_number:)
  super()

  @signing_time = signing_time
  @cert_digest_value = cert_digest_value
  @cert_issuer_name = cert_issuer_name
  @cert_serial_number = cert_serial_number
end

Instance Method Details

#elementsObject



15
16
17
18
19
# File 'lib/zatca/ubl/signing/object.rb', line 15

def elements
  [
    ZATCA::UBL::Signing::QualifyingProperties.new(signing_time: @signing_time, cert_digest_value: @cert_digest_value, cert_issuer_name: @cert_issuer_name, cert_serial_number: @cert_serial_number)
  ]
end

#nameObject



11
12
13
# File 'lib/zatca/ubl/signing/object.rb', line 11

def name
  "ds:Object"
end