Class: Manifestly::Entity::WorkflowStep

Inherits:
ChildEndpoint show all
Defined in:
lib/manifestly/entity/workflow_step.rb

Instance Attribute Summary collapse

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

#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)



48
49
50
# File 'lib/manifestly/entity/workflow_step.rb', line 48

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

Class Method Details

.endpoint_targetObject



32
33
34
# File 'lib/manifestly/entity/workflow_step.rb', line 32

def self.endpoint_target
  :steps
end

.parent_classObject



28
29
30
# File 'lib/manifestly/entity/workflow_step.rb', line 28

def self.parent_class
  Workflow
end

Instance Method Details

#content_objectsObject



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