class Evolis::PremiumSdk::Echo

Public Class Methods

new(host, port) click to toggle source

Initializes the class and sets SDK host and port

@param host [String] host or IP for SDK @param port [String, Fixnum] port for SDK

Calls superclass method
# File lib/evolis/premium_sdk/echo.rb, line 11
def initialize(host, port)
  super(host, port, 'ECHO')
end

Public Instance Methods

echo(msg) click to toggle source

Sends a character string to the server

@param msg [String] character string @return [String] same as msg parameter

# File lib/evolis/premium_sdk/echo.rb, line 19
def echo(msg)
  call_rpc('Echo', {
      data: msg
  })
end