Class: SDM::ApprovalWorkflowListResponse

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

Overview

ApprovalWorkflowListResponse returns a list of ApprovalWorkflow records that meet the criteria of an ApprovalWorkflowListRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate_limit: nil) ⇒ ApprovalWorkflowListResponse



2628
2629
2630
2631
2632
# File 'lib/models/porcelain.rb', line 2628

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

Instance Attribute Details

#rate_limitObject

Rate limit information.



2626
2627
2628
# File 'lib/models/porcelain.rb', line 2626

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2634
2635
2636
2637
2638
2639
2640
# File 'lib/models/porcelain.rb', line 2634

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