Class: Retab::CreateWorkflowTableUploadRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/tables/create_workflow_table_upload_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  name: :name,
  file: :file,
  column_schema_overrides: :column_schema_overrides,
  project_id: :project_id
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

deep_symbolize, #inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ CreateWorkflowTableUploadRequest

Returns a new instance of CreateWorkflowTableUploadRequest.



22
23
24
25
26
27
28
29
# File 'lib/retab/tables/create_workflow_table_upload_request.rb', line 22

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @name = hash[:name]
  @file = hash[:file]
  @column_schema_overrides = hash[:column_schema_overrides]
  @project_id = hash[:project_id]
end

Instance Attribute Details

#column_schema_overridesObject

Returns the value of attribute column_schema_overrides.



15
16
17
# File 'lib/retab/tables/create_workflow_table_upload_request.rb', line 15

def column_schema_overrides
  @column_schema_overrides
end

#fileObject

Returns the value of attribute file.



15
16
17
# File 'lib/retab/tables/create_workflow_table_upload_request.rb', line 15

def file
  @file
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/retab/tables/create_workflow_table_upload_request.rb', line 15

def name
  @name
end

#project_idObject

Returns the value of attribute project_id.



15
16
17
# File 'lib/retab/tables/create_workflow_table_upload_request.rb', line 15

def project_id
  @project_id
end