Class: Manifestly::Entity::WorkflowStep
- Inherits:
-
ChildEndpoint
- Object
- Base
- Endpoint
- ChildEndpoint
- 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.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ChildEndpoint
#delete, get, #initialize, list, location, #location, #parent_class, #update
Methods inherited from Endpoint
#client, client, #create, #delete, #endpoint_target, get, list, #location, location, #save, singular_endpoint_target, #singular_endpoint_target, #update
Methods inherited from Base
attr_accessor, attr_reader, #attributes, attributes, #attributes=, #initialize, invalid_class_method, invalid_method, #to_h
Constructor Details
This class inherits a constructor from Manifestly::Entity::ChildEndpoint
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)
48 49 50 |
# File 'lib/manifestly/entity/workflow_step.rb', line 48 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 |
Class Method Details
.endpoint_target ⇒ Object
32 33 34 |
# File 'lib/manifestly/entity/workflow_step.rb', line 32 def self.endpoint_target :steps end |
.parent_class ⇒ Object
28 29 30 |
# File 'lib/manifestly/entity/workflow_step.rb', line 28 def self.parent_class Workflow end |
Instance Method Details
#content_objects ⇒ Object
36 37 38 39 40 41 |
# 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) ⇒ Object
43 44 45 |
# File 'lib/manifestly/entity/workflow_step.rb', line 43 def content_objects=(values) @content_objects = Array(values).map { |it| WorkflowStepContentObject.new(self, it) } end |