Class: Retab::WorkflowExportPayloadRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  workflow_id: :workflow_id,
  block_id: :block_id,
  export_source: :export_source,
  selected_run_ids: :selected_run_ids,
  selected_doc_types: :selected_doc_types,
  status: :status,
  exclude_status: :exclude_status,
  from_date: :from_date,
  to_date: :to_date,
  trigger_types: :trigger_types,
  preferred_columns: :preferred_columns,
  delimiter: :delimiter,
  line_delimiter: :line_delimiter,
  quote: :quote
}.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) ⇒ WorkflowExportPayloadRequest

Returns a new instance of WorkflowExportPayloadRequest.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 41

def initialize(json)
  hash = self.class.normalize(json)
  @workflow_id = hash[:workflow_id]
  @block_id = hash[:block_id]
  @export_source = hash[:export_source]
  @selected_run_ids = (hash[:selected_run_ids] || [])
  @selected_doc_types = (hash[:selected_doc_types] || [])
  @status = hash[:status]
  @exclude_status = hash[:exclude_status]
  @from_date = hash[:from_date]
  @to_date = hash[:to_date]
  @trigger_types = (hash[:trigger_types] || [])
  @preferred_columns = (hash[:preferred_columns] || [])
  @delimiter = hash[:delimiter]
  @line_delimiter = hash[:line_delimiter]
  @quote = hash[:quote]
end

Instance Attribute Details

#block_idObject

Returns the value of attribute block_id.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def block_id
  @block_id
end

#delimiterObject

Returns the value of attribute delimiter.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def delimiter
  @delimiter
end

#exclude_statusObject

Returns the value of attribute exclude_status.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def exclude_status
  @exclude_status
end

#export_sourceObject

Returns the value of attribute export_source.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def export_source
  @export_source
end

#from_dateObject

Returns the value of attribute from_date.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def from_date
  @from_date
end

#line_delimiterObject

Returns the value of attribute line_delimiter.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def line_delimiter
  @line_delimiter
end

#preferred_columnsObject

Returns the value of attribute preferred_columns.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def preferred_columns
  @preferred_columns
end

#quoteObject

Returns the value of attribute quote.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def quote
  @quote
end

#selected_doc_typesObject

Returns the value of attribute selected_doc_types.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def selected_doc_types
  @selected_doc_types
end

#selected_run_idsObject

Returns the value of attribute selected_run_ids.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def selected_run_ids
  @selected_run_ids
end

#statusObject

Returns the value of attribute status.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def status
  @status
end

#to_dateObject

Returns the value of attribute to_date.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def to_date
  @to_date
end

#trigger_typesObject

Returns the value of attribute trigger_types.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def trigger_types
  @trigger_types
end

#workflow_idObject

Returns the value of attribute workflow_id.



25
26
27
# File 'lib/retab/workflow_runs/workflow_export_payload_request.rb', line 25

def workflow_id
  @workflow_id
end