Class: Receiver

Inherits:
Object
  • Object
show all
Defined in:
lib/javonet-ruby-sdk/core/receiver/receiver.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/receiver/receiver.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/receiver/receiver.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/receiver/receiver.rb

Instance Method Summary collapse

Constructor Details

#initializeReceiver

Returns a new instance of Receiver.



7
8
9
# File 'lib/javonet-ruby-sdk/core/receiver/receiver.rb', line 7

def initialize
  RuntimeLogger.print_runtime_info
end

Instance Method Details

#heart_beat(message_array, message_array_len) ⇒ Object



15
16
17
# File 'lib/javonet-ruby-sdk/core/receiver/receiver.rb', line 15

def heart_beat(message_array, message_array_len)
  [49,48]
end

#send_command(message_array, message_array_len) ⇒ Object



11
12
13
# File 'lib/javonet-ruby-sdk/core/receiver/receiver.rb', line 11

def send_command(message_array, message_array_len)
  CommandSerializer.new.serialize(Interpreter.new.process(message_array))
end