Class: Retab::WorkflowTableResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowTableResponse
- Defined in:
- lib/retab/tables/workflow_table_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ table: :table }.freeze
Instance Attribute Summary collapse
-
#table ⇒ Object
Returns the value of attribute table.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowTableResponse
constructor
A new instance of WorkflowTableResponse.
Methods inherited from Types::BaseModel
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowTableResponse
Returns a new instance of WorkflowTableResponse.
14 15 16 17 18 |
# File 'lib/retab/tables/workflow_table_response.rb', line 14 def initialize(json) super() hash = self.class.normalize(json) @table = hash[:table] ? Retab::WorkflowTable.new(hash[:table]) : nil end |
Instance Attribute Details
#table ⇒ Object
Returns the value of attribute table.
12 13 14 |
# File 'lib/retab/tables/workflow_table_response.rb', line 12 def table @table end |