Class: AdminModule::Pages::WorkflowDetailTaskMappingsPage::TaskDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/admin_module/pages/workflow_detail_task_mappings_page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#edit_button_idObject

Returns the value of attribute edit_button_id.



117
118
119
# File 'lib/admin_module/pages/workflow_detail_task_mappings_page.rb', line 117

def edit_button_id
  @edit_button_id
end

#mapped_screensObject

Returns the value of attribute mapped_screens.



116
117
118
# File 'lib/admin_module/pages/workflow_detail_task_mappings_page.rb', line 116

def mapped_screens
  @mapped_screens
end

#nameObject

Returns the value of attribute name.



115
116
117
# File 'lib/admin_module/pages/workflow_detail_task_mappings_page.rb', line 115

def name
  @name
end

#sequenceObject

Returns the value of attribute sequence.



114
115
116
# File 'lib/admin_module/pages/workflow_detail_task_mappings_page.rb', line 114

def sequence
  @sequence
end

Instance Method Details

#screensObject



127
128
129
130
131
132
# File 'lib/admin_module/pages/workflow_detail_task_mappings_page.rb', line 127

def screens
  # Clean up the screens list by splitting into an array
  screens = @mapped_screens.split(', ')
  # and removing whitespace (specifically, non-breaking spaces)
  screens.collect! { |scr| scr.gsub("\u00A0",'').strip }
end

#to_hshObject



119
120
121
122
123
124
125
# File 'lib/admin_module/pages/workflow_detail_task_mappings_page.rb', line 119

def to_hsh
  {
    sequence: @sequence,
    name: @name,
    mapped_screens: screens,
  }
end