class Manifestly::Entity::WorkflowStep

Attributes

active[RW]
checklist_id[RW]
created_at[RW]
description[RW]
header_step[R]
id[RW]
late_at_basis[RW]
late_at_offset[RW]
late_at_offset_units[RW]
original_id[RW]
parent_step_id[RW]
position[RW]
title[RW]
updated_at[RW]

Public Class Methods

endpoint_target() click to toggle source
# File lib/manifestly/entity/workflow_step.rb, line 32
def self.endpoint_target
  :steps
end
parent_class() click to toggle source
# File lib/manifestly/entity/workflow_step.rb, line 28
def self.parent_class
  Workflow
end

Public Instance Methods

content_objects() click to toggle source
# File lib/manifestly/entity/workflow_step.rb, line 36
def content_objects
  return @content_objects if @content_objects

  @content_objects = Manifestly::Entity::WorkflowStepContentObject.list(self) if id
  @content_objects ||= []
end
content_objects=(values) click to toggle source
# File lib/manifestly/entity/workflow_step.rb, line 43
def content_objects=(values)
  @content_objects = Array(values).map { |it| WorkflowStepContentObject.new(self, it) }
end
header_step=(value) click to toggle source

Always convert to a boolean

# File lib/manifestly/entity/workflow_step.rb, line 53
def header_step=(value)
  @header_step = (value.to_s == 'true')
end