Class: HTTPService::NaviAI

Inherits:
Object
  • Object
show all
Defined in:
lib/http_service/naviai.rb

Class Method Summary collapse

Class Method Details

.start(file_path, client_type, token) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/http_service/naviai.rb', line 8

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
                                       })
end