Sha256: 8d63d31519f8a32813921d0b27d13ea64ead9ae093d3d1520155be5098823161
Contents?: true
Size: 454 Bytes
Versions: 73
Compression:
Stored size: 454 Bytes
Contents
require 'flydata/api/base' module Flydata module Api class Agent < Base def initialize(api_client) @model_name = 'agent' @url_path = "/#{@model_name}" super end def actions(last_id) @client.get("#{@url_path}/actions?last_id=#{last_id}") end def send_logs(action_id, logs) @client.post("#{@url_path}/logs", nil, {action_id: action_id, logs: logs}) end end end end
Version data entries
73 entries across 73 versions & 1 rubygems