Class: Retab::DeclarativeExportResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::DeclarativeExportResponse
- Defined in:
- lib/retab/workflow_specs/declarative_export_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ workflow_id: :workflow_id, yaml_definition: :yaml_definition }.freeze
Instance Attribute Summary collapse
-
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
-
#yaml_definition ⇒ Object
Returns the value of attribute yaml_definition.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ DeclarativeExportResponse
constructor
A new instance of DeclarativeExportResponse.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ DeclarativeExportResponse
Returns a new instance of DeclarativeExportResponse.
17 18 19 20 21 |
# File 'lib/retab/workflow_specs/declarative_export_response.rb', line 17 def initialize(json) hash = self.class.normalize(json) @workflow_id = hash[:workflow_id] @yaml_definition = hash[:yaml_definition] end |
Instance Attribute Details
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
13 14 15 |
# File 'lib/retab/workflow_specs/declarative_export_response.rb', line 13 def workflow_id @workflow_id end |
#yaml_definition ⇒ Object
Returns the value of attribute yaml_definition.
13 14 15 |
# File 'lib/retab/workflow_specs/declarative_export_response.rb', line 13 def yaml_definition @yaml_definition end |