Class: Retab::DeclarativeWorkflowRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::DeclarativeWorkflowRequest
- Defined in:
- lib/retab/workflow_specs/declarative_workflow_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ yaml_definition: :yaml_definition }.freeze
Instance Attribute Summary collapse
-
#yaml_definition ⇒ Object
Returns the value of attribute yaml_definition.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ DeclarativeWorkflowRequest
constructor
A new instance of DeclarativeWorkflowRequest.
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_definition ⇒ Object
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 |