Method: EasyPdfCloud::Workflow#initialize

Defined in:
lib/easy_pdf_cloud.rb

#initialize(client, workflow_id, options = {}) ⇒ Workflow

Returns a new instance of Workflow.



114
115
116
117
118
119
120
121
122
# File 'lib/easy_pdf_cloud.rb', line 114

def initialize(client, workflow_id, options = {})
  @client = client
  @access_token = client.access_token
  @workflow_id = workflow_id
  @workflow_url = "#{client.workflow_url}/#{@workflow_id}"
  @jobs_url = "#{client.api_url}/jobs"
  @event_id = nil
  @debug = options[:debug]
end