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.



18337
18338
18339
18340
18341
18342
18343
18344
18345
# File 'lib/models/porcelain.rb', line 18337

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.



18331
18332
18333
# File 'lib/models/porcelain.rb', line 18331

def meta
  @meta
end

#rate_limitObject

Rate limit information.



18333
18334
18335
# File 'lib/models/porcelain.rb', line 18333

def rate_limit
  @rate_limit
end

#workflowObject

The requested Workflow.



18335
18336
18337
# File 'lib/models/porcelain.rb', line 18335

def workflow
  @workflow
end

Instance Method Details

#to_json(options = {}) ⇒ Object



18347
18348
18349
18350
18351
18352
18353
# File 'lib/models/porcelain.rb', line 18347

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