Class: Retab::DeclarativeExportResponse

Inherits:
Types::BaseModel show all
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

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) ⇒ 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_idObject

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_definitionObject

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