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.
17 18 19 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 17 def error @error end |
#file ⇒ Object
Returns the value of attribute file
16 17 18 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 16 def file @file end |
#poll ⇒ Object
Returns the value of attribute poll.
17 18 19 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 17 def poll @poll end |
#s3_file_reference ⇒ Object
Returns the value of attribute s3_file_reference.
17 18 19 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 17 def s3_file_reference @s3_file_reference end |
Instance Method Details
#container_id ⇒ Object
27 28 29 30 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 27 def container_id return unless success? poll.container_id end |
#error? ⇒ Boolean
19 20 21 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 19 def error? !error.nil? end |
#success? ⇒ Boolean
23 24 25 |
# File 'lib/ecoportal/api/v2/s3/files/batch_upload.rb', line 23 def success? poll&.success? end |