Class: Manifestly::Entity::WorkflowStep

Inherits:
Base
  • Object
show all
Defined in:
lib/manifestly/entity/workflow_step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activeObject

Returns the value of attribute active.



15
16
17
# File 'lib/manifestly/entity/workflow_step.rb', line 15

def active
  @active
end

#checklist_idObject

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_atObject

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

#descriptionObject

Returns the value of attribute description.



10
11
12
# File 'lib/manifestly/entity/workflow_step.rb', line 10

def description
  @description
end

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_stepObject

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

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/manifestly/entity/workflow_step.rb', line 6

def id
  @id
end

#late_at_basisObject

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_offsetObject

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_unitsObject

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_idObject

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_idObject

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

#positionObject

Returns the value of attribute position.



8
9
10
# File 'lib/manifestly/entity/workflow_step.rb', line 8

def position
  @position
end

#titleObject

Returns the value of attribute title.



9
10
11
# File 'lib/manifestly/entity/workflow_step.rb', line 9

def title
  @title
end

#updated_atObject

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