Sha256: 4ec4df97dbd073d7c8a81f9bc53d24d583bf19a182ea3f8297edf2522af5e19e

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

module BreezyPDFLite
  # Request conversion of a HTML string to PDF
  class RenderRequest
    def initialize(body)
      @body = body
    end

    def submit
      client.post("/render/html", @body)
    end

    private

    def client
      @client ||= Client.new
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
breezy_pdf_lite-0.0.1 lib/breezy_pdf_lite/render_request.rb