Class: Retab::ValidateWorkflowBlockConfigResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ValidateWorkflowBlockConfigResponse
- 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
-
#block_id ⇒ Object
Returns the value of attribute block_id.
-
#block_type ⇒ Object
Returns the value of attribute block_type.
-
#config_hash ⇒ Object
Returns the value of attribute config_hash.
-
#ok ⇒ Object
Returns the value of attribute ok.
-
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ValidateWorkflowBlockConfigResponse
constructor
A new instance of ValidateWorkflowBlockConfigResponse.
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_id ⇒ Object
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_type ⇒ Object
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_hash ⇒ Object
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 |
#ok ⇒ Object
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_id ⇒ Object
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 |