Class: Manifestly::Entity::Workflow

Inherits:
Endpoint show all
Defined in:
lib/manifestly/entity/workflow.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Endpoint

#client, client, #create, #delete, #endpoint_target, get, list, #location, location, #save, singular_endpoint_target, #singular_endpoint_target

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::Base

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



7
8
9
# File 'lib/manifestly/entity/workflow.rb', line 7

def 
  @account_id
end

#business_daysObject

Returns the value of attribute business_days.



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

def business_days
  @business_days
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#expected_durationObject

Returns the value of attribute expected_duration.



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

def expected_duration
  @expected_duration
end

#expected_duration_unitsObject

Returns the value of attribute expected_duration_units.



11
12
13
# File 'lib/manifestly/entity/workflow.rb', line 11

def expected_duration_units
  @expected_duration_units
end

#external_idObject

Returns the value of attribute external_id.



12
13
14
# File 'lib/manifestly/entity/workflow.rb', line 12

def external_id
  @external_id
end

#hide_steps_from_externalObject

Returns the value of attribute hide_steps_from_external.



13
14
15
# File 'lib/manifestly/entity/workflow.rb', line 13

def hide_steps_from_external
  @hide_steps_from_external
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#stepsObject

rubocop:disable DuplicateMethods



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

def steps
  @steps
end

#tag_listObject

Returns the value of attribute tag_list.



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

def tag_list
  @tag_list
end

#titleObject

Returns the value of attribute title.



16
17
18
# File 'lib/manifestly/entity/workflow.rb', line 16

def title
  @title
end

Class Method Details

.endpoint_targetObject



18
19
20
# File 'lib/manifestly/entity/workflow.rb', line 18

def self.endpoint_target
  :checklists
end

Instance Method Details

#updateObject

Workflows use an ‘upsert’ methodology so the create and update routes are shared. Lookups are done via the external_id you pass in



24
25
26
# File 'lib/manifestly/entity/workflow.rb', line 24

def update
  create
end