Class: Retab::WorkflowExportPayloadResponse

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_runs/workflow_export_payload_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  csv_data: :csv_data,
  rows: :rows,
  columns: :columns
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

#inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ WorkflowExportPayloadResponse

Returns a new instance of WorkflowExportPayloadResponse.



19
20
21
22
23
24
# File 'lib/retab/workflow_runs/workflow_export_payload_response.rb', line 19

def initialize(json)
  hash = self.class.normalize(json)
  @csv_data = hash[:csv_data]
  @rows = hash[:rows]
  @columns = hash[:columns]
end

Instance Attribute Details

#columnsObject

Returns the value of attribute columns.



14
15
16
# File 'lib/retab/workflow_runs/workflow_export_payload_response.rb', line 14

def columns
  @columns
end

#csv_dataObject

Returns the value of attribute csv_data.



14
15
16
# File 'lib/retab/workflow_runs/workflow_export_payload_response.rb', line 14

def csv_data
  @csv_data
end

#rowsObject

Returns the value of attribute rows.



14
15
16
# File 'lib/retab/workflow_runs/workflow_export_payload_response.rb', line 14

def rows
  @rows
end