Class: Retab::DeclarativeWorkflowRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_specs/declarative_workflow_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  yaml_definition: :yaml_definition
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

#inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ DeclarativeWorkflowRequest

Returns a new instance of DeclarativeWorkflowRequest.



14
15
16
17
# File 'lib/retab/workflow_specs/declarative_workflow_request.rb', line 14

def initialize(json)
  hash = self.class.normalize(json)
  @yaml_definition = hash[:yaml_definition]
end

Instance Attribute Details

#yaml_definitionObject

Returns the value of attribute yaml_definition.



12
13
14
# File 'lib/retab/workflow_specs/declarative_workflow_request.rb', line 12

def yaml_definition
  @yaml_definition
end