Class: Batchly::Request::FileRequest

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

Overview

FileRequest is a type of request that supports file storage Request holds the location of the file thats available for your processing

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, parameters = nil, location = nil, content_path = nil) ⇒ FileRequest

Returns a new instance of FileRequest.



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

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

Instance Attribute Details

#content_pathObject

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



27
28
29
# File 'lib/batchly-sdk/request/file_request.rb', line 27

def content_path
  @content_path
end

#idObject

Unique id of the Unit of Work string



18
19
20
# File 'lib/batchly-sdk/request/file_request.rb', line 18

def id
  @id
end

#locationObject

Location of the file on disk string



24
25
26
# File 'lib/batchly-sdk/request/file_request.rb', line 24

def location
  @location
end

#parametersObject

parameters that has been configured in portal hashTable



21
22
23
# File 'lib/batchly-sdk/request/file_request.rb', line 21

def parameters
  @parameters
end