Class: Ecoportal::API::V2::S3::Files::BatchUpload::FileResult
- Inherits:
-
Struct
- Object
- Struct
- Ecoportal::API::V2::S3::Files::BatchUpload::FileResult
- Defined in:
- lib/ecoportal/api/v2/s3/files/batch_upload.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#file ⇒ Object
Returns the value of attribute file.
-
#poll ⇒ Object
Returns the value of attribute poll.
-
#s3_file_reference ⇒ Object
Returns the value of attribute s3_file_reference.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
19 20 21 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 19 def error @error end |
#file ⇒ Object
Returns the value of attribute file
18 19 20 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 18 def file @file end |
#poll ⇒ Object
Returns the value of attribute poll.
19 20 21 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 19 def poll @poll end |
#s3_file_reference ⇒ Object
Returns the value of attribute s3_file_reference.
19 20 21 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 19 def s3_file_reference @s3_file_reference end |
Instance Method Details
#container_id ⇒ Object
29 30 31 32 33 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 29 def container_id return unless success? poll.container_id end |
#error? ⇒ Boolean
21 22 23 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 21 def error? !error.nil? end |
#success? ⇒ Boolean
25 26 27 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 25 def success? poll&.success? end |