Class: SDM::WorkflowUpdateResponse

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

Overview

WorkflowUpdateResponse returns the fields of a Workflow after it has been updated by a WorkflowUpdateRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate_limit: nil, workflow: nil) ⇒ WorkflowUpdateResponse

Returns a new instance of WorkflowUpdateResponse.



13373
13374
13375
13376
13377
13378
13379
# File 'lib/models/porcelain.rb', line 13373

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

Instance Attribute Details

#rate_limitObject

Rate limit information.



13369
13370
13371
# File 'lib/models/porcelain.rb', line 13369

def rate_limit
  @rate_limit
end

#workflowObject

The updated workflow.



13371
13372
13373
# File 'lib/models/porcelain.rb', line 13371

def workflow
  @workflow
end

Instance Method Details

#to_json(options = {}) ⇒ Object



13381
13382
13383
13384
13385
13386
13387
# File 'lib/models/porcelain.rb', line 13381

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