Class: SDM::WorkflowRoleGetResponse

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

Overview

WorkflowRoleGetResponse returns a requested WorkflowRole.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, rate_limit: nil, workflow_role: nil) ⇒ WorkflowRoleGetResponse

Returns a new instance of WorkflowRoleGetResponse.



13489
13490
13491
13492
13493
13494
13495
13496
13497
# File 'lib/models/porcelain.rb', line 13489

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

Instance Attribute Details

#metaObject

Reserved for future use.



13483
13484
13485
# File 'lib/models/porcelain.rb', line 13483

def meta
  @meta
end

#rate_limitObject

Rate limit information.



13485
13486
13487
# File 'lib/models/porcelain.rb', line 13485

def rate_limit
  @rate_limit
end

#workflow_roleObject

The requested WorkflowRole.



13487
13488
13489
# File 'lib/models/porcelain.rb', line 13487

def workflow_role
  @workflow_role
end

Instance Method Details

#to_json(options = {}) ⇒ Object



13499
13500
13501
13502
13503
13504
13505
# File 'lib/models/porcelain.rb', line 13499

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