class ClientForPoslynx::MessageHandling::StreamDataWriter

Attributes

stream[R]

Public Class Methods

new(stream) click to toggle source
# File lib/client_for_poslynx/message_handling/stream_data_writer.rb, line 9
def initialize(stream)
  @stream = stream
end

Public Instance Methods

put_data(data) click to toggle source
# File lib/client_for_poslynx/message_handling/stream_data_writer.rb, line 13
def put_data(data)
  xml_text = data.xml_serialize
  stream.puts xml_text
end