Class: SDM::WorkflowApproversCreateResponse

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

Overview

WorkflowApproversCreateResponse reports how the WorkflowApprover was created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate_limit: nil, workflow_approver: nil) ⇒ WorkflowApproversCreateResponse

Returns a new instance of WorkflowApproversCreateResponse.



17249
17250
17251
17252
17253
17254
17255
# File 'lib/models/porcelain.rb', line 17249

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

Instance Attribute Details

#rate_limitObject

Rate limit information.



17245
17246
17247
# File 'lib/models/porcelain.rb', line 17245

def rate_limit
  @rate_limit
end

#workflow_approverObject

The created workflow approver.



17247
17248
17249
# File 'lib/models/porcelain.rb', line 17247

def workflow_approver
  @workflow_approver
end

Instance Method Details

#to_json(options = {}) ⇒ Object



17257
17258
17259
17260
17261
17262
17263
# File 'lib/models/porcelain.rb', line 17257

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