Class: SDM::ApprovalWorkflowApprover
- Inherits:
-
Object
- Object
- SDM::ApprovalWorkflowApprover
- Defined in:
- lib/models/porcelain.rb
Overview
ApprovalWorkflowApprover links an approval workflow approver to an ApprovalWorkflowStep
Instance Attribute Summary collapse
-
#account_id ⇒ Object
The approver account id.
-
#approval_flow_id ⇒ Object
The approval flow id specified the approval workflow that this approver belongs to.
-
#approval_step_id ⇒ Object
The approval step id specified the approval flow step that this approver belongs to.
-
#id ⇒ Object
Unique identifier of the ApprovalWorkflowApprover.
-
#role_id ⇒ Object
The approver role id.
Instance Method Summary collapse
-
#initialize(account_id: nil, approval_flow_id: nil, approval_step_id: nil, id: nil, role_id: nil) ⇒ ApprovalWorkflowApprover
constructor
A new instance of ApprovalWorkflowApprover.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account_id: nil, approval_flow_id: nil, approval_step_id: nil, id: nil, role_id: nil) ⇒ ApprovalWorkflowApprover
Returns a new instance of ApprovalWorkflowApprover.
2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 |
# File 'lib/models/porcelain.rb', line 2300 def initialize( account_id: nil, approval_flow_id: nil, approval_step_id: nil, id: nil, role_id: nil ) @account_id = account_id == nil ? "" : account_id @approval_flow_id = approval_flow_id == nil ? "" : approval_flow_id @approval_step_id = approval_step_id == nil ? "" : approval_step_id @id = id == nil ? "" : id @role_id = role_id == nil ? "" : role_id end |
Instance Attribute Details
#account_id ⇒ Object
The approver account id.
2290 2291 2292 |
# File 'lib/models/porcelain.rb', line 2290 def account_id @account_id end |
#approval_flow_id ⇒ Object
The approval flow id specified the approval workflow that this approver belongs to
2292 2293 2294 |
# File 'lib/models/porcelain.rb', line 2292 def approval_flow_id @approval_flow_id end |
#approval_step_id ⇒ Object
The approval step id specified the approval flow step that this approver belongs to
2294 2295 2296 |
# File 'lib/models/porcelain.rb', line 2294 def approval_step_id @approval_step_id end |
#id ⇒ Object
Unique identifier of the ApprovalWorkflowApprover.
2296 2297 2298 |
# File 'lib/models/porcelain.rb', line 2296 def id @id end |
#role_id ⇒ Object
The approver role id
2298 2299 2300 |
# File 'lib/models/porcelain.rb', line 2298 def role_id @role_id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2314 2315 2316 2317 2318 2319 2320 |
# File 'lib/models/porcelain.rb', line 2314 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 |