Class: SDM::WorkflowRolesListRequest

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

Overview

WorkflowRolesListRequest specifies criteria for retrieving a list of WorkflowRole records

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filter: nil) ⇒ WorkflowRolesListRequest

Returns a new instance of WorkflowRolesListRequest.



11093
11094
11095
11096
11097
# File 'lib/models/porcelain.rb', line 11093

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

Instance Attribute Details

#filterObject

A human-readable filter query string.



11091
11092
11093
# File 'lib/models/porcelain.rb', line 11091

def filter
  @filter
end

Instance Method Details

#to_json(options = {}) ⇒ Object



11099
11100
11101
11102
11103
11104
11105
# File 'lib/models/porcelain.rb', line 11099

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