Class: StackOne::Models::Shared::Task
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Task
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/task.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(assigned_by_employee_id: nil, assigned_by_employee_name: nil, attachments: nil, comments: nil, completion_date: nil, created_at: nil, description: nil, due_date: nil, employee_id: nil, extracted_links: nil, id: nil, link_to_task: nil, name: nil, next_task_id: nil, parent_process_name: nil, remote_id: nil, status: nil, type: nil, updated_at: nil) ⇒ Task
constructor
A new instance of Task.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(assigned_by_employee_id: nil, assigned_by_employee_name: nil, attachments: nil, comments: nil, completion_date: nil, created_at: nil, description: nil, due_date: nil, employee_id: nil, extracted_links: nil, id: nil, link_to_task: nil, name: nil, next_task_id: nil, parent_process_name: nil, remote_id: nil, status: nil, type: nil, updated_at: nil) ⇒ Task
Returns a new instance of Task.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/stack_one/models/shared/task.rb', line 55 def initialize(assigned_by_employee_id: nil, assigned_by_employee_name: nil, attachments: nil, comments: nil, completion_date: nil, created_at: nil, description: nil, due_date: nil, employee_id: nil, extracted_links: nil, id: nil, link_to_task: nil, name: nil, next_task_id: nil, parent_process_name: nil, remote_id: nil, status: nil, type: nil, updated_at: nil) @assigned_by_employee_id = assigned_by_employee_id @assigned_by_employee_name = assigned_by_employee_name @attachments = @comments = comments @completion_date = completion_date @created_at = created_at @description = description @due_date = due_date @employee_id = employee_id @extracted_links = extracted_links @id = id @link_to_task = link_to_task @name = name @next_task_id = next_task_id @parent_process_name = parent_process_name @remote_id = remote_id @status = status @type = type @updated_at = updated_at end |
Instance Method Details
#==(other) ⇒ Object
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/stack_one/models/shared/task.rb', line 78 def ==(other) return false unless other.is_a? self.class return false unless @assigned_by_employee_id == other.assigned_by_employee_id return false unless @assigned_by_employee_name == other.assigned_by_employee_name return false unless @attachments == other. return false unless @comments == other.comments return false unless @completion_date == other.completion_date return false unless @created_at == other.created_at return false unless @description == other.description return false unless @due_date == other.due_date return false unless @employee_id == other.employee_id return false unless @extracted_links == other.extracted_links return false unless @id == other.id return false unless @link_to_task == other.link_to_task return false unless @name == other.name return false unless @next_task_id == other.next_task_id return false unless @parent_process_name == other.parent_process_name return false unless @remote_id == other.remote_id return false unless @status == other.status return false unless @type == other.type return false unless @updated_at == other.updated_at true end |