Class: WorkflowProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/zipmark/workflow_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ WorkflowProxy

Returns a new instance of WorkflowProxy.



4
5
6
# File 'lib/zipmark/workflow_proxy.rb', line 4

def initialize(client)
  self.client = client
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



2
3
4
# File 'lib/zipmark/workflow_proxy.rb', line 2

def client
  @client
end

Instance Method Details

#create(options = {}) ⇒ Object



8
9
10
# File 'lib/zipmark/workflow_proxy.rb', line 8

def create(options = {})
  Workflow.new(options.merge(client: client))
end