Class: Salesfly::PDFAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/salesfly/pdf_api.rb

Instance Method Summary collapse

Constructor Details

#initialize(rest_client) ⇒ PDFAPI

Returns a new instance of PDFAPI.



4
5
6
# File 'lib/salesfly/pdf_api.rb', line 4

def initialize(rest_client)
  @rest_client = rest_client
end

Instance Method Details

#create(options) ⇒ Object



8
9
10
11
12
13
# 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