Class: SDM::ApprovalWorkflowStepHistory
- Inherits:
-
Object
- Object
- SDM::ApprovalWorkflowStepHistory
- Defined in:
- lib/models/porcelain.rb
Overview
ApprovalWorkflowStepHistory records the state of an ApprovalWorkflowStep at a given point in time, where every change (create or delete) to an ApprovalWorkflowStep produces an ApprovalWorkflowStepHistory record.
Instance Attribute Summary collapse
-
#activity_id ⇒ Object
The unique identifier of the Activity that produced this change to the ApprovalWorkflowStep.
-
#approval_workflow_step ⇒ Object
The complete ApprovalWorkflowStep state at this time.
-
#deleted_at ⇒ Object
If this ApprovalWorkflowStep was deleted, the time it was deleted.
-
#timestamp ⇒ Object
The time at which the ApprovalWorkflowStep state was recorded.
Instance Method Summary collapse
-
#initialize(activity_id: nil, approval_workflow_step: nil, deleted_at: nil, timestamp: nil) ⇒ ApprovalWorkflowStepHistory
constructor
A new instance of ApprovalWorkflowStepHistory.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(activity_id: nil, approval_workflow_step: nil, deleted_at: nil, timestamp: nil) ⇒ ApprovalWorkflowStepHistory
Returns a new instance of ApprovalWorkflowStepHistory.
2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 |
# File 'lib/models/porcelain.rb', line 2701 def initialize( activity_id: nil, approval_workflow_step: nil, deleted_at: nil, timestamp: nil ) @activity_id = activity_id == nil ? "" : activity_id @approval_workflow_step = approval_workflow_step == nil ? nil : approval_workflow_step @deleted_at = deleted_at == nil ? nil : deleted_at @timestamp = == nil ? nil : end |
Instance Attribute Details
#activity_id ⇒ Object
The unique identifier of the Activity that produced this change to the ApprovalWorkflowStep. May be empty for some system-initiated updates.
2693 2694 2695 |
# File 'lib/models/porcelain.rb', line 2693 def activity_id @activity_id end |
#approval_workflow_step ⇒ Object
The complete ApprovalWorkflowStep state at this time.
2695 2696 2697 |
# File 'lib/models/porcelain.rb', line 2695 def approval_workflow_step @approval_workflow_step end |
#deleted_at ⇒ Object
If this ApprovalWorkflowStep was deleted, the time it was deleted.
2697 2698 2699 |
# File 'lib/models/porcelain.rb', line 2697 def deleted_at @deleted_at end |
#timestamp ⇒ Object
The time at which the ApprovalWorkflowStep state was recorded.
2699 2700 2701 |
# File 'lib/models/porcelain.rb', line 2699 def @timestamp end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2713 2714 2715 2716 2717 2718 2719 |
# File 'lib/models/porcelain.rb', line 2713 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |