Class: AsposeWordsCloud::BatchPartRequest
- Inherits:
-
Object
- Object
- AsposeWordsCloud::BatchPartRequest
- Defined in:
- lib/aspose_words_cloud/models/requests/batch_part_request.rb
Overview
Class to wrap other request to batch part.
Instance Attribute Summary collapse
-
#parent_request_id ⇒ Object
The parent request_id in case this request is child.
-
#request ⇒ Object
The request to send.
-
#request_id ⇒ Object
The request_id of the request.
Instance Method Summary collapse
- #dependsOn(request) ⇒ Object
-
#initialize(request) ⇒ BatchPartRequest
constructor
A new instance of BatchPartRequest.
- #resultOf ⇒ Object
Constructor Details
#initialize(request) ⇒ BatchPartRequest
Returns a new instance of BatchPartRequest.
42 43 44 45 46 |
# File 'lib/aspose_words_cloud/models/requests/batch_part_request.rb', line 42 def initialize(request) self.request = request self.request_id = SecureRandom.uuid self.parent_request_id = nil end |
Instance Attribute Details
#parent_request_id ⇒ Object
The parent request_id in case this request is child
40 41 42 |
# File 'lib/aspose_words_cloud/models/requests/batch_part_request.rb', line 40 def parent_request_id @parent_request_id end |
#request ⇒ Object
The request to send
34 35 36 |
# File 'lib/aspose_words_cloud/models/requests/batch_part_request.rb', line 34 def request @request end |
#request_id ⇒ Object
The request_id of the request
37 38 39 |
# File 'lib/aspose_words_cloud/models/requests/batch_part_request.rb', line 37 def request_id @request_id end |
Instance Method Details
#dependsOn(request) ⇒ Object
56 57 58 |
# File 'lib/aspose_words_cloud/models/requests/batch_part_request.rb', line 56 def dependsOn(request) self.parent_request_id = request.request_id end |
#resultOf ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/aspose_words_cloud/models/requests/batch_part_request.rb', line 48 def resultOf part = "" part.concat("resultOf(".force_encoding('UTF-8')) part.concat(self.request_id.force_encoding('UTF-8')) part.concat(")".force_encoding('UTF-8')) part end |