Class: RubyRobot::RubyRobotRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_robot/grpc_helper.rb

Constant Summary collapse

Direction =
Google::Protobuf::DescriptorPool.generated_pool.lookup("RubyRobot.RubyRobotRequest.Direction").enummodule

Instance Method Summary collapse

Instance Method Details

#to_jsonObject



7
8
9
10
11
12
13
# File 'lib/ruby_robot/grpc_helper.rb', line 7

def to_json
  {
    x: self.x,
    y: self.y,
    direction: self.direction.to_s
  }.to_json
end