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.



13059
13060
13061
13062
13063
13064
13065
13066
13067
# File 'lib/models/porcelain.rb', line 13059

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.



13053
13054
13055
# File 'lib/models/porcelain.rb', line 13053

def meta
  @meta
end

#rate_limitObject

Rate limit information.



13055
13056
13057
# File 'lib/models/porcelain.rb', line 13055

def rate_limit
  @rate_limit
end

#workflow_approverObject

The requested WorkflowApprover.



13057
13058
13059
# File 'lib/models/porcelain.rb', line 13057

def workflow_approver
  @workflow_approver
end

Instance Method Details

#to_json(options = {}) ⇒ Object



13069
13070
13071
13072
13073
13074
13075
# File 'lib/models/porcelain.rb', line 13069

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