Class: Ecoportal::API::GraphQL::FileUpload::Client::Result
- Inherits:
-
Struct
- Object
- Struct
- Ecoportal::API::GraphQL::FileUpload::Client::Result
- Defined in:
- lib/ecoportal/api/graphql/file_upload/client.rb
Overview
One entry per input file. Mirrors ecoportal-api-v2's
S3::Files::BatchUpload::FileResult so batch code reads the same in both stacks.
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#file ⇒ Object
Returns the value of attribute file.
-
#key ⇒ Object
Returns the value of attribute key.
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
79 80 81 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 79 def error @error end |
#file ⇒ Object
Returns the value of attribute file
78 79 80 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 78 def file @file end |
#key ⇒ Object
Returns the value of attribute key.
79 80 81 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 79 def key @key end |
#payload ⇒ Object
Returns the value of attribute payload.
79 80 81 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 79 def payload @payload end |
Instance Method Details
#container_id ⇒ Object
93 94 95 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 93 def container_id file_container&.id end |
#error? ⇒ Boolean
81 82 83 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 81 def error? !error.nil? end |
#file_container ⇒ Object
89 90 91 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 89 def file_container payload&.item end |
#success? ⇒ Boolean
85 86 87 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 85 def success? !error? && !container_id.nil? end |