Class: Retab::ValidateWorkflowBlockConfigRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ValidateWorkflowBlockConfigRequest
- 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
-
#config ⇒ Object
Returns the value of attribute config.
-
#config_mode ⇒ Object
Returns the value of attribute config_mode.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ValidateWorkflowBlockConfigRequest
constructor
A new instance of ValidateWorkflowBlockConfigRequest.
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
#config ⇒ Object
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_mode ⇒ Object
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 |