Class: SDM::ApprovalWorkflowGetResponse
- Inherits:
-
Object
- Object
- SDM::ApprovalWorkflowGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ApprovalWorkflowGetResponse returns a requested ApprovalWorkflow.
Instance Attribute Summary collapse
-
#approval_workflow ⇒ Object
The requested ApprovalWorkflow.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(approval_workflow: nil, meta: nil, rate_limit: nil) ⇒ ApprovalWorkflowGetResponse
constructor
A new instance of ApprovalWorkflowGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(approval_workflow: nil, meta: nil, rate_limit: nil) ⇒ ApprovalWorkflowGetResponse
Returns a new instance of ApprovalWorkflowGetResponse.
2568 2569 2570 2571 2572 2573 2574 2575 2576 |
# File 'lib/models/porcelain.rb', line 2568 def initialize( approval_workflow: nil, meta: nil, rate_limit: nil ) @approval_workflow = approval_workflow == nil ? nil : approval_workflow = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#approval_workflow ⇒ Object
The requested ApprovalWorkflow.
2562 2563 2564 |
# File 'lib/models/porcelain.rb', line 2562 def approval_workflow @approval_workflow end |
#meta ⇒ Object
Reserved for future use.
2564 2565 2566 |
# File 'lib/models/porcelain.rb', line 2564 def end |
#rate_limit ⇒ Object
Rate limit information.
2566 2567 2568 |
# File 'lib/models/porcelain.rb', line 2566 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2578 2579 2580 2581 2582 2583 2584 |
# File 'lib/models/porcelain.rb', line 2578 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 |