Class: SDM::ApprovalWorkflowApproverHistory

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(activity_id: nil, approval_workflow_approver: nil, deleted_at: nil, timestamp: nil) ⇒ ApprovalWorkflowApproverHistory

Returns a new instance of ApprovalWorkflowApproverHistory.



2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
# File 'lib/models/porcelain.rb', line 2361

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 = timestamp == nil ? nil : timestamp
end

Instance Attribute Details

#activity_idObject

The unique identifier of the Activity that produced this change to the ApprovalWorkflowApprover. May be empty for some system-initiated updates.



2353
2354
2355
# File 'lib/models/porcelain.rb', line 2353

def activity_id
  @activity_id
end

#approval_workflow_approverObject

The complete ApprovalWorkflowApprover state at this time.



2355
2356
2357
# File 'lib/models/porcelain.rb', line 2355

def approval_workflow_approver
  @approval_workflow_approver
end

#deleted_atObject

If this ApprovalWorkflowApprover was deleted, the time it was deleted.



2357
2358
2359
# File 'lib/models/porcelain.rb', line 2357

def deleted_at
  @deleted_at
end

#timestampObject

The time at which the ApprovalWorkflowApprover state was recorded.



2359
2360
2361
# File 'lib/models/porcelain.rb', line 2359

def timestamp
  @timestamp
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2373
2374
2375
2376
2377
2378
2379
# File 'lib/models/porcelain.rb', line 2373

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end