Class: Batchly::Request::FileRequest
- 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
-
#content_path ⇒ Object
Path for loading additional content - Path to container from where code is executed
string
. -
#id ⇒ Object
Unique id of the Unit of Work
string
. -
#location ⇒ Object
Location of the file on disk
string
. -
#parameters ⇒ Object
parameters that has been configured in portal
hashTable
.
Instance Method Summary collapse
-
#initialize(id = nil, parameters = nil, location = nil, content_path = nil) ⇒ FileRequest
constructor
A new instance of FileRequest.
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_path ⇒ Object
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 |
#id ⇒ Object
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 |
#location ⇒ Object
Location of the file on disk string
24 25 26 |
# File 'lib/batchly-sdk/request/file_request.rb', line 24 def location @location end |
#parameters ⇒ Object
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 |