class XmlConv::Model::Document

Attributes

filename[RW]
prefix[RW]
recipient_id[RW]
transaction_id[RW]

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/xmlconv/model/document.rb, line 8
def initialize(*args)
  super
                          @recipient_id = recipient_id
  @prefix = @recipient_id
  time = Time.now
                          msec = sprintf('%03i', (time.to_f * 1000).to_i % 100)
  @transaction_id = time.strftime("%Y%m%d%H%M%S#{msec}")
end

Public Instance Methods

to_s() click to toggle source
# File lib/xmlconv/model/document.rb, line 20
def to_s
  "" << self
end