Class: Retab::ValidateWorkflowBlockConfigRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  config: :config,
  config_mode: :config_mode
}.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) ⇒ ValidateWorkflowBlockConfigRequest

Returns a new instance of ValidateWorkflowBlockConfigRequest.



18
19
20
21
22
23
# File 'lib/retab/workflow_blocks/validate_workflow_block_config_request.rb', line 18

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @config = hash[:config] || {}
  @config_mode = hash[:config_mode].nil? ? "replace" : hash[:config_mode]
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



13
14
15
# File 'lib/retab/workflow_blocks/validate_workflow_block_config_request.rb', line 13

def config
  @config
end

#config_modeObject

Returns the value of attribute config_mode.



13
14
15
# File 'lib/retab/workflow_blocks/validate_workflow_block_config_request.rb', line 13

def config_mode
  @config_mode
end