Sha256: 6e3629827308847348495bc244ef581bfb731c6e7ca4b590f310649808206267
Contents?: true
Size: 422 Bytes
Versions: 32
Compression:
Stored size: 422 Bytes
Contents
module ProconBypassMan class ReportHttpClient < HttpClient def post(body: , event_type: ) if body.is_a?(Hash) b = body else b = { text: body } end super(request_body: { session_id: ProconBypassMan.session_id, device_id: ProconBypassMan.device_id, hostname: `hostname`.chomp, event_type: event_type, body: b, }) end end end
Version data entries
32 entries across 32 versions & 1 rubygems