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.
61 62 63 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 61 def error @error end |
#file ⇒ Object
Returns the value of attribute file
60 61 62 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 60 def file @file end |
#key ⇒ Object
Returns the value of attribute key.
61 62 63 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 61 def key @key end |
#payload ⇒ Object
Returns the value of attribute payload.
61 62 63 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 61 def payload @payload end |
Instance Method Details
#container_id ⇒ Object
75 76 77 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 75 def container_id file_container&.id end |
#error? ⇒ Boolean
63 64 65 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 63 def error? !error.nil? end |
#file_container ⇒ Object
71 72 73 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 71 def file_container payload&.item end |
#success? ⇒ Boolean
67 68 69 |
# File 'lib/ecoportal/api/graphql/file_upload/client.rb', line 67 def success? !error? && !container_id.nil? end |