README.md in pdfmonkey-0.5.0 vs README.md in pdfmonkey-0.6.0
- old
+ new
@@ -48,11 +48,11 @@
#### Synchronous generation
If your want to wait for a Document’s generation before continuing with your workflow, use the `generate!` method, it will request a document generation and wait for it to succeed or fail before giving you any answer.
```ruby
-tempalte_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
+template_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
data = { name: 'John Doe' }
document = Pdfmonkey::Document.generate!(template_id, data)
document.status # => 'success'
@@ -70,11 +70,11 @@
PDFMonkey was created with an asynchronous workflow in mind. It provides webhooks to inform you of a Document’s generation success or failure.
To leverage this behavior and continue working while your Document is generated, use the `generate` method:
```ruby
-tempalte_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
+template_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
data = { name: 'John Doe' }
document = Pdfmonkey::Document.generate(template_id, data)
document.status # => 'pending'
@@ -131,10 +131,10 @@
In case of error, be it an HTTP layer error or an API error, `document.status` will be set to `'error'` and `document.error` will contain the error message.
```ruby
# Using an unknown template
-tempalte_id = 'unknown'
+template_id = 'unknown'
data = { name: 'John Doe' }
document = Pdfmonkey::Document.generate(template_id, data)
document.status # => 'error'