Class: MisarReach::AutopilotResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/misar_reach/client.rb

Overview

── Resource: Autopilot ──────────────────────────────────────────────────────

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from MisarReach::Resource

Instance Method Details

#get(id) ⇒ Object



275
276
277
# File 'lib/misar_reach/client.rb', line 275

def get(id)
  @client.request(:get, "/autopilot/#{id}")
end

#runs(params = {}) ⇒ Object



271
272
273
# File 'lib/misar_reach/client.rb', line 271

def runs(params = {})
  @client.request(:get, "/autopilot/runs#{qs(params)}")
end

#set_status(id, data) ⇒ Object



283
284
285
# File 'lib/misar_reach/client.rb', line 283

def set_status(id, data)
  @client.request(:post, "/autopilot/#{id}/status", data)
end

#start(data) ⇒ Object



267
268
269
# File 'lib/misar_reach/client.rb', line 267

def start(data)
  @client.request(:post, "/autopilot/start", data)
end

#status(id) ⇒ Object



279
280
281
# File 'lib/misar_reach/client.rb', line 279

def status(id)
  @client.request(:get, "/autopilot/#{id}/status")
end