class Salesfly::PDFAPI
Public Class Methods
new(rest_client)
click to toggle source
# File lib/salesfly/pdf_api.rb, line 4 def initialize(rest_client) @rest_client = rest_client end
Public Instance Methods
create(options)
click to toggle source
# File lib/salesfly/pdf_api.rb, line 8 def create(options) headers = { "Accept" => "application/pdf" } return @rest_client.post("/v1/pdf/create", options.to_json, headers) end