Class: SDM::WorkflowCreateResponse

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

Overview

WorkflowCreateResponse reports how the Workflow was created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of WorkflowCreateResponse.



15742
15743
15744
15745
15746
15747
15748
# File 'lib/models/porcelain.rb', line 15742

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.



15738
15739
15740
# File 'lib/models/porcelain.rb', line 15738

def rate_limit
  @rate_limit
end

#workflowObject

The created workflow.



15740
15741
15742
# File 'lib/models/porcelain.rb', line 15740

def workflow
  @workflow
end

Instance Method Details

#to_json(options = {}) ⇒ Object



15750
15751
15752
15753
15754
15755
15756
# File 'lib/models/porcelain.rb', line 15750

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