Sha256: 285c6bc0dbd5fc0a50774980b8a45386afad355fac6580c8203f132b5f591e69

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require "httparty"

GO_SERVER_URL = 'http://localhost:9090/v2/metas'

module HTTPService
  class NaviAI

    def self.start(file_path, client_type, token)
      if client_type == 'local'
        go_url = 'http://localhost:9090'
      else
        go_url = ''
      end
      HTTParty.post(GO_SERVER_URL, body: { client_type: client_type, list_meta_path: file_path, token: token }.to_json)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
navi_client-1.1.0 lib/http_service/naviai.rb