Class: SDM::WorkflowApproverGetResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

WorkflowApproverGetResponse returns a requested WorkflowApprover.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, rate_limit: nil, workflow_approver: nil) ⇒ WorkflowApproverGetResponse

Returns a new instance of WorkflowApproverGetResponse.



10503
10504
10505
10506
10507
10508
10509
10510
10511
# File 'lib/models/porcelain.rb', line 10503

def initialize(
  meta: nil,
  rate_limit: nil,
  workflow_approver: nil
)
  @meta = meta == nil ? nil : meta
  @rate_limit = rate_limit == nil ? nil : rate_limit
  @workflow_approver = workflow_approver == nil ? nil : workflow_approver
end

Instance Attribute Details

#metaObject

Reserved for future use.



10497
10498
10499
# File 'lib/models/porcelain.rb', line 10497

def meta
  @meta
end

#rate_limitObject

Rate limit information.



10499
10500
10501
# File 'lib/models/porcelain.rb', line 10499

def rate_limit
  @rate_limit
end

#workflow_approverObject

The requested WorkflowApprover.



10501
10502
10503
# File 'lib/models/porcelain.rb', line 10501

def workflow_approver
  @workflow_approver
end

Instance Method Details

#to_json(options = {}) ⇒ Object



10513
10514
10515
10516
10517
10518
10519
# File 'lib/models/porcelain.rb', line 10513

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