Class: SDM::WorkflowGetResponse

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

Overview

WorkflowGetResponse returns a requested Workflow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, rate_limit: nil, workflow: nil) ⇒ WorkflowGetResponse

Returns a new instance of WorkflowGetResponse.



17773
17774
17775
17776
17777
17778
17779
17780
17781
# File 'lib/models/porcelain.rb', line 17773

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

Instance Attribute Details

#metaObject

Reserved for future use.



17767
17768
17769
# File 'lib/models/porcelain.rb', line 17767

def meta
  @meta
end

#rate_limitObject

Rate limit information.



17769
17770
17771
# File 'lib/models/porcelain.rb', line 17769

def rate_limit
  @rate_limit
end

#workflowObject

The requested Workflow.



17771
17772
17773
# File 'lib/models/porcelain.rb', line 17771

def workflow
  @workflow
end

Instance Method Details

#to_json(options = {}) ⇒ Object



17783
17784
17785
17786
17787
17788
17789
# File 'lib/models/porcelain.rb', line 17783

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