Class: Sendregning::LineSerializer

Inherits:
XmlSerializer show all
Defined in:
lib/sendregning/line_serializer.rb

Instance Method Summary collapse

Methods inherited from XmlSerializer

build, #initialize

Constructor Details

This class inherits a constructor from Sendregning::XmlSerializer

Instance Method Details

#buildObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/sendregning/line_serializer.rb', line 5

def build
  builder.line do |line|
    line.qty       item.qty       if item.qty
    line.prodCode  item.prodCode  if item.prodCode
    line.desc      item.desc      if item.desc
    line.unitPrice item.unitPrice if item.unitPrice
    line.discount  item.discount  if item.discount
    line.tax       item.tax       if item.tax
  end
end