Sha256: 9ea4526ba6a6078f119fbefb5ea952f25bd544e63e9805788f059447b0080b39
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
require_relative 'endpoint' module Manifestly module Entity class WorkflowStep < Base attr_accessor :id attr_accessor :checklist_id attr_accessor :position attr_accessor :title attr_accessor :description attr_accessor :description_with_links attr_accessor :created_at attr_accessor :updated_at attr_reader :header_step attr_accessor :active attr_accessor :original_id attr_accessor :late_at_offset attr_accessor :late_at_offset_units attr_accessor :late_at_basis attr_accessor :parent_step_id def initialize(workflow, data = {}) raise 'invalid workflow' unless workflow.is_a?(Workflow) @parent = workflow super(data) end # Header step needs to always be a boolean (even if not set) def header_step # rubocop:disable DuplicateMethods @header_step || false end # Always convert to a boolean def header_step=(value) @header_step = (value.to_s == 'true') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
manifestly-client-0.0.1 | lib/manifestly/entity/workflow_step.rb |
manifestly-client-0.0.0 | lib/manifestly/entity/workflow_step.rb |