Sha256: f4d10d615dcb67323362837ea285a8bc27ac2ff36ce90e531017f157605ff4ae

Contents?: true

Size: 655 Bytes

Versions: 12

Compression:

Stored size: 655 Bytes

Contents

# frozen_string_literal: true

module CXML
  class InvoiceDetailHeaderOrder < DocumentNode
    accessible_nodes %i[
      invoice_detail_order_info
      invoice_detail_order_summaries
    ]

    def initialize_invoice_detail_order_summary(value)
      value = [value] unless value.is_a?(Array)
      @invoice_detail_order_summaries = value.map do |item|
        InvoiceDetailOrderSummary.new(item)
      end
    end

    def initialize_invoice_detail_order_summaries(value)
      value = [value] unless value.is_a?(Array)
      @invoice_detail_order_summaries = value.map do |item|
        InvoiceDetailOrderSummary.new(item)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cxml-ruby-0.8.2 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.8.1 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.8.0 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.7.0 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.6.1 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.6.0 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.5.0 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.4.1 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.4.0 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.3.0 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.2.1 lib/cxml/invoice_detail_header_order.rb
cxml-ruby-0.2.0 lib/cxml/invoice_detail_header_order.rb