class Escalator::Protocol::Emulator::EmuProtocol

Public Class Methods

new(options={}) click to toggle source
# File lib/escalator/protocol/emulator/emu_protocol.rb, line 30
def initialize options={}
  options.merge host:"localhost", port:5555
  super
end

Public Instance Methods

execute(line) click to toggle source
# File lib/escalator/protocol/emulator/emu_protocol.rb, line 35
def execute line
  @socket.puts(line)
  @socket.gets
end

Private Instance Methods

device_class() click to toggle source
# File lib/escalator/protocol/emulator/emu_protocol.rb, line 42
def device_class
  EscDevice
end
local_device(device) click to toggle source
# File lib/escalator/protocol/emulator/emu_protocol.rb, line 46
def local_device device
  device
end