class Manifestly::Entity::Workflow

Attributes

account_id[RW]
business_days[RW]
channel[RW]
description[RW]
expected_duration[RW]
expected_duration_units[RW]
external_id[RW]
hide_steps_from_external[RW]
id[RW]
steps[R]
tag_list[R]
title[RW]

Public Class Methods

endpoint_target() click to toggle source
# File lib/manifestly/entity/workflow.rb, line 19
def self.endpoint_target
  :checklists
end

Public Instance Methods

steps=(values) click to toggle source
# File lib/manifestly/entity/workflow.rb, line 36
def steps=(values)
  @steps = Array(values).map { |it| WorkflowStep.new(self, it) }
end
tag_list=(values) click to toggle source
# File lib/manifestly/entity/workflow.rb, line 40
def tag_list=(values)
  @tag_list = Array(values).map(&:upcase)
end
update() click to toggle source

Workflows use an 'upsert' methodology so the create and update routes are shared. Lookups are done via the external_id you pass in

# File lib/manifestly/entity/workflow.rb, line 25
def update
  create
end