Class: Gendocio
- Inherits:
-
Object
- Object
- Gendocio
- Defined in:
- lib/gendocio.rb
Class Method Summary collapse
Class Method Details
.generate(template, data, token = '') ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/gendocio.rb', line 5 def generate(template, data, token='') = { headers: { "Content-Type": "application/json", "Authorization": "Bearer #{token}" }, body: { template: template, data: data }.to_json } HTTParty.post('https://api.gendoc.io/gendoc', ).to_s end |