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



18480
18481
18482
18483
18484
18485
18486
# File 'lib/models/porcelain.rb', line 18480

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.



18476
18477
18478
# File 'lib/models/porcelain.rb', line 18476

def rate_limit
  @rate_limit
end

#workflowObject

The updated workflow.



18478
18479
18480
# File 'lib/models/porcelain.rb', line 18478

def workflow
  @workflow
end

Instance Method Details

#to_json(options = {}) ⇒ Object



18488
18489
18490
18491
18492
18493
18494
# File 'lib/models/porcelain.rb', line 18488

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