Sha256: 1e6b14eeafa1060a0bc610d7e727d0aa882179ab679951f13e2e6f74874866d2

Contents?: true

Size: 426 Bytes

Versions: 3

Compression:

Stored size: 426 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 = '34.214.134.104:9090'
      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

3 entries across 3 versions & 1 rubygems

Version Path
navi_client-1.1.3 lib/http_service/naviai.rb
navi_client-1.1.2 lib/http_service/naviai.rb
navi_client-1.1.1 lib/http_service/naviai.rb