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.



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

def initialize
  @@interpreter = Interpreter.new
end

Instance Method Details

#heart_beat(message_array, message_array_len) ⇒ Object



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

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

#send_command(message_array, message_array_len) ⇒ Object



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

def send_command(message_array, message_array_len)
  @@interpreter.process(message_array, message_array_len)
end