Class: Batchly::Request::DelimitedFileRequest

Inherits:
IRequest
  • Object
show all
Defined in:
lib/batchly-sdk/request/delimited_request.rb

Overview

DelimitedFileRequest is a type of request that supports csv and other delmited type of source files Request holds the fields as an array. The fields are column values from a single row

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, parameters = nil, fields = nil, content_path = nil) ⇒ DelimitedFileRequest

Returns a new instance of DelimitedFileRequest.



11
12
13
14
15
16
# File 'lib/batchly-sdk/request/delimited_request.rb', line 11

def initialize(id = nil, parameters = nil, fields = nil, content_path = nil)
  @id = id
  @parameters = parameters
  @fields = fields
  @content_path = content_path
end

Instance Attribute Details

#content_pathObject

Path for loading additional content - Path to container from where code is executed string



29
30
31
# File 'lib/batchly-sdk/request/delimited_request.rb', line 29

def content_path
  @content_path
end

#fieldsObject

Fields contain the individual columns of a delimited row array



25
26
27
# File 'lib/batchly-sdk/request/delimited_request.rb', line 25

def fields
  @fields
end

#idObject

Unique id of the Unit of Work string



19
20
21
# File 'lib/batchly-sdk/request/delimited_request.rb', line 19

def id
  @id
end

#parametersObject

parameters that has been configured in portal hashTable



22
23
24
# File 'lib/batchly-sdk/request/delimited_request.rb', line 22

def parameters
  @parameters
end