class XmlConv::I2::Document
Attributes
header[RW]
orders[R]
Public Class Methods
new()
click to toggle source
# File lib/xmlconv/i2/document.rb, line 12 def initialize @header = Header.new @orders = [] end
Public Instance Methods
add_order(order)
click to toggle source
# File lib/xmlconv/i2/document.rb, line 16 def add_order(order) @orders.push(order) end
filename()
click to toggle source
# File lib/xmlconv/i2/document.rb, line 19 def filename @header.filename end
to_s()
click to toggle source
# File lib/xmlconv/i2/document.rb, line 22 def to_s ([@header] + @orders).join end