Sha256: 6a7baceb1d756d1b282373e75819c80836279d1bc831b1b2586df1c5e2981e98

Contents?: true

Size: 813 Bytes

Versions: 12

Compression:

Stored size: 813 Bytes

Contents

# frozen_string_literal: true

module CXML
  class InvoiceDetailOrderSummary < DocumentNode
    accessible_attributes %i[
      invoice_line_number
      inspection_date
    ]
    accessible_nodes %i[
      subtotal_amount
      period
      tax
      invoice_detail_line_special_handling
      invoice_detail_line_shipping
      gross_amount
    ]

    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_order_summary.rb
cxml-ruby-0.8.1 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.8.0 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.7.0 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.6.1 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.6.0 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.5.0 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.4.1 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.4.0 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.3.0 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.2.1 lib/cxml/invoice_detail_order_summary.rb
cxml-ruby-0.2.0 lib/cxml/invoice_detail_order_summary.rb