Method: Clubhouse::Workflow#initialize

Defined in:
lib/clubhouse2/workflow.rb

#initialize(client:, object:) ⇒ Workflow

Returns a new instance of Workflow.



7
8
9
10
11
12
13
14
# File 'lib/clubhouse2/workflow.rb', line 7

def initialize(client:, object:)
	super
	@states = []
	object['states'].each do |this_state|
		this_state[:workflow_id] = @id
		@states << State.new(client: client, object: this_state)
	end
end