Class: Salesfly::PDFAPI
- Inherits:
-
Object
- Object
- Salesfly::PDFAPI
- Defined in:
- lib/salesfly/pdf_api.rb
Instance Method Summary collapse
- #create(options) ⇒ Object
-
#initialize(rest_client) ⇒ PDFAPI
constructor
A new instance of PDFAPI.
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() headers = { "Accept" => "application/pdf" } return @rest_client.post("/v1/pdf/create", .to_json, headers) end |