Class: Manifestly::Entity::WorkflowStep
- Defined in:
- lib/manifestly/entity/workflow_step.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#checklist_id ⇒ Object
Returns the value of attribute checklist_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#description_with_links ⇒ Object
Returns the value of attribute description_with_links.
-
#header_step ⇒ Object
Header step needs to always be a boolean (even if not set).
-
#id ⇒ Object
Returns the value of attribute id.
-
#late_at_basis ⇒ Object
Returns the value of attribute late_at_basis.
-
#late_at_offset ⇒ Object
Returns the value of attribute late_at_offset.
-
#late_at_offset_units ⇒ Object
Returns the value of attribute late_at_offset_units.
-
#original_id ⇒ Object
Returns the value of attribute original_id.
-
#parent_step_id ⇒ Object
Returns the value of attribute parent_step_id.
-
#position ⇒ Object
Returns the value of attribute position.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(workflow, data = {}) ⇒ WorkflowStep
constructor
A new instance of WorkflowStep.
Methods inherited from Base
attr_accessor, attr_reader, attributes, #attributes, #attributes=, invalid_class_method, invalid_method, #to_h
Constructor Details
#initialize(workflow, data = {}) ⇒ WorkflowStep
Returns a new instance of WorkflowStep.
22 23 24 25 26 27 |
# File 'lib/manifestly/entity/workflow_step.rb', line 22 def initialize(workflow, data = {}) raise 'invalid workflow' unless workflow.is_a?(Workflow) @parent = workflow super(data) end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
15 16 17 |
# File 'lib/manifestly/entity/workflow_step.rb', line 15 def active @active end |
#checklist_id ⇒ Object
Returns the value of attribute checklist_id.
7 8 9 |
# File 'lib/manifestly/entity/workflow_step.rb', line 7 def checklist_id @checklist_id end |
#created_at ⇒ Object
Returns the value of attribute created_at.
12 13 14 |
# File 'lib/manifestly/entity/workflow_step.rb', line 12 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
10 11 12 |
# File 'lib/manifestly/entity/workflow_step.rb', line 10 def description @description end |
#description_with_links ⇒ Object
Returns the value of attribute description_with_links.
11 12 13 |
# File 'lib/manifestly/entity/workflow_step.rb', line 11 def description_with_links @description_with_links end |
#header_step ⇒ Object
Header step needs to always be a boolean (even if not set)
30 31 32 |
# File 'lib/manifestly/entity/workflow_step.rb', line 30 def header_step @header_step end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/manifestly/entity/workflow_step.rb', line 6 def id @id end |
#late_at_basis ⇒ Object
Returns the value of attribute late_at_basis.
19 20 21 |
# File 'lib/manifestly/entity/workflow_step.rb', line 19 def late_at_basis @late_at_basis end |
#late_at_offset ⇒ Object
Returns the value of attribute late_at_offset.
17 18 19 |
# File 'lib/manifestly/entity/workflow_step.rb', line 17 def late_at_offset @late_at_offset end |
#late_at_offset_units ⇒ Object
Returns the value of attribute late_at_offset_units.
18 19 20 |
# File 'lib/manifestly/entity/workflow_step.rb', line 18 def late_at_offset_units @late_at_offset_units end |
#original_id ⇒ Object
Returns the value of attribute original_id.
16 17 18 |
# File 'lib/manifestly/entity/workflow_step.rb', line 16 def original_id @original_id end |
#parent_step_id ⇒ Object
Returns the value of attribute parent_step_id.
20 21 22 |
# File 'lib/manifestly/entity/workflow_step.rb', line 20 def parent_step_id @parent_step_id end |
#position ⇒ Object
Returns the value of attribute position.
8 9 10 |
# File 'lib/manifestly/entity/workflow_step.rb', line 8 def position @position end |
#title ⇒ Object
Returns the value of attribute title.
9 10 11 |
# File 'lib/manifestly/entity/workflow_step.rb', line 9 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
13 14 15 |
# File 'lib/manifestly/entity/workflow_step.rb', line 13 def updated_at @updated_at end |