Class: SDM::WorkflowRolesListResponse

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

Overview

WorkflowRolesListResponse returns a list of WorkflowRole records that meet the criteria of a WorkflowRolesListRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate_limit: nil) ⇒ WorkflowRolesListResponse

Returns a new instance of WorkflowRolesListResponse.



11114
11115
11116
11117
11118
# File 'lib/models/porcelain.rb', line 11114

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

Instance Attribute Details

#rate_limitObject

Rate limit information.



11112
11113
11114
# File 'lib/models/porcelain.rb', line 11112

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



11120
11121
11122
11123
11124
11125
11126
# File 'lib/models/porcelain.rb', line 11120

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