Class: Retab::WorkflowTableResponse

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/retab/tables/workflow_table_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  table: :table
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tableObject

Returns the value of attribute table.



12
13
14
# File 'lib/retab/tables/workflow_table_response.rb', line 12

def table
  @table
end