Sha256: f2a9a31cb1ec299917d8eb43722a6429f1c349f54f8a98becfd6d2fe2c110fc9
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
module ProconBypassMan class ReportHttpClient < HttpClient def post(body: , event_type: ) if body.is_a?(String) b = { text: body } else b = 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
procon_bypass_man-0.1.14 | lib/procon_bypass_man/support/report_http_client.rb |