Sha256: 8490b06658e9294d9cfb54264f6e53610205f7bab6838fe348827217010ccc84

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

require "procon_bypass_man/outbound/base"

class ProconBypassMan::ErrorReporter < ProconBypassMan::Outbound::Base
  PATH = "/api/error_reports"

  def self.report(body: )
    Client.new(
      path: PATH,
      server: ProconBypassMan.config.api_server,
    ).post(body: body.full_message)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
procon_bypass_man-0.1.11 lib/procon_bypass_man/outbound/error_reporter.rb