Class: SDM::WorkflowApproversListRequest

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

Overview

WorkflowApproversListRequest specifies criteria for retrieving a list of WorkflowApprover records

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filter: nil) ⇒ WorkflowApproversListRequest

Returns a new instance of WorkflowApproversListRequest.



13185
13186
13187
13188
13189
# File 'lib/models/porcelain.rb', line 13185

def initialize(
  filter: nil
)
  @filter = filter == nil ? "" : filter
end

Instance Attribute Details

#filterObject

A human-readable filter query string.



13183
13184
13185
# File 'lib/models/porcelain.rb', line 13183

def filter
  @filter
end

Instance Method Details

#to_json(options = {}) ⇒ Object



13191
13192
13193
13194
13195
13196
13197
# File 'lib/models/porcelain.rb', line 13191

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