Class: Retab::DeclarativeWorkflowRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::DeclarativeWorkflowRequest
- Defined in:
- lib/retab/workflows/declarative_workflow_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ yaml_definition: :yaml_definition, project_id: :project_id }.freeze
Instance Attribute Summary collapse
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#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
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ DeclarativeWorkflowRequest
Returns a new instance of DeclarativeWorkflowRequest.
18 19 20 21 22 23 |
# File 'lib/retab/workflows/declarative_workflow_request.rb', line 18 def initialize(json) super() hash = self.class.normalize(json) @yaml_definition = hash[:yaml_definition] @project_id = hash[:project_id] end |
Instance Attribute Details
#project_id ⇒ Object
Returns the value of attribute project_id.
13 14 15 |
# File 'lib/retab/workflows/declarative_workflow_request.rb', line 13 def project_id @project_id end |
#yaml_definition ⇒ Object
Returns the value of attribute yaml_definition.
13 14 15 |
# File 'lib/retab/workflows/declarative_workflow_request.rb', line 13 def yaml_definition @yaml_definition end |