Class: Retab::ValidateWorkflowBlockConfigResponse

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_blocks/validate_workflow_block_config_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  ok: :ok,
  workflow_id: :workflow_id,
  block_id: :block_id,
  block_type: :block_type,
  config_hash: :config_hash
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

deep_symbolize, #inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ ValidateWorkflowBlockConfigResponse

Returns a new instance of ValidateWorkflowBlockConfigResponse.



24
25
26
27
28
29
30
31
32
# File 'lib/retab/workflow_blocks/validate_workflow_block_config_response.rb', line 24

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @ok = hash[:ok].nil? ? true : hash[:ok]
  @workflow_id = hash[:workflow_id]
  @block_id = hash[:block_id]
  @block_type = hash[:block_type]
  @config_hash = hash[:config_hash]
end

Instance Attribute Details

#block_idObject

Returns the value of attribute block_id.



16
17
18
# File 'lib/retab/workflow_blocks/validate_workflow_block_config_response.rb', line 16

def block_id
  @block_id
end

#block_typeObject

Returns the value of attribute block_type.



16
17
18
# File 'lib/retab/workflow_blocks/validate_workflow_block_config_response.rb', line 16

def block_type
  @block_type
end

#config_hashObject

Returns the value of attribute config_hash.



16
17
18
# File 'lib/retab/workflow_blocks/validate_workflow_block_config_response.rb', line 16

def config_hash
  @config_hash
end

#okObject

Returns the value of attribute ok.



16
17
18
# File 'lib/retab/workflow_blocks/validate_workflow_block_config_response.rb', line 16

def ok
  @ok
end

#workflow_idObject

Returns the value of attribute workflow_id.



16
17
18
# File 'lib/retab/workflow_blocks/validate_workflow_block_config_response.rb', line 16

def workflow_id
  @workflow_id
end