Class: SDM::ApprovalWorkflowApproverHistory
- Inherits:
-
Object
- Object
- SDM::ApprovalWorkflowApproverHistory
- Defined in:
- lib/models/porcelain.rb
Overview
ApprovalWorkflowApproverHistory records the state of an ApprovalWorkflowApprover at a given point in time, where every change (create or delete) to an ApprovalWorkflowApprover produces an ApprovalWorkflowApproverHistory record.
Instance Attribute Summary collapse
-
#activity_id ⇒ Object
The unique identifier of the Activity that produced this change to the ApprovalWorkflowApprover.
-
#approval_workflow_approver ⇒ Object
The complete ApprovalWorkflowApprover state at this time.
-
#deleted_at ⇒ Object
If this ApprovalWorkflowApprover was deleted, the time it was deleted.
-
#timestamp ⇒ Object
The time at which the ApprovalWorkflowApprover state was recorded.
Instance Method Summary collapse
-
#initialize(activity_id: nil, approval_workflow_approver: nil, deleted_at: nil, timestamp: nil) ⇒ ApprovalWorkflowApproverHistory
constructor
A new instance of ApprovalWorkflowApproverHistory.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(activity_id: nil, approval_workflow_approver: nil, deleted_at: nil, timestamp: nil) ⇒ ApprovalWorkflowApproverHistory
Returns a new instance of ApprovalWorkflowApproverHistory.
2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 |
# File 'lib/models/porcelain.rb', line 2789 def initialize( activity_id: nil, approval_workflow_approver: nil, deleted_at: nil, timestamp: nil ) @activity_id = activity_id == nil ? "" : activity_id @approval_workflow_approver = approval_workflow_approver == nil ? nil : approval_workflow_approver @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 ApprovalWorkflowApprover. May be empty for some system-initiated updates.
2781 2782 2783 |
# File 'lib/models/porcelain.rb', line 2781 def activity_id @activity_id end |
#approval_workflow_approver ⇒ Object
The complete ApprovalWorkflowApprover state at this time.
2783 2784 2785 |
# File 'lib/models/porcelain.rb', line 2783 def approval_workflow_approver @approval_workflow_approver end |
#deleted_at ⇒ Object
If this ApprovalWorkflowApprover was deleted, the time it was deleted.
2785 2786 2787 |
# File 'lib/models/porcelain.rb', line 2785 def deleted_at @deleted_at end |
#timestamp ⇒ Object
The time at which the ApprovalWorkflowApprover state was recorded.
2787 2788 2789 |
# File 'lib/models/porcelain.rb', line 2787 def @timestamp end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2801 2802 2803 2804 2805 2806 2807 |
# File 'lib/models/porcelain.rb', line 2801 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 |