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