You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: server_op.rb
    path of file: ./repos/hyperstack/ruby/hyper-operation/lib/hyper-operation
    
    the code of the file until where you have to start completion: require 'net/http' unless RUBY_ENGINE == 'opal'

module Hyperstack
  class ServerOp < Operation

    class << self
      include Hyperstack::Component::Isom
    
      def remote(path, *args)
        promise = Promise.new
        uri = URI("#{path}execute_remote_api")
        http = Net::HTTP.new(uri.host, uri.port)
        request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
        if uri.scheme == 'https'
          http.use_ssl = true
        end