Class: Uploadcare::Entity::FileMetadata
- Defined in:
- lib/uploadcare/entity/file_metadata.rb
Overview
This serializer is responsible for file metadata handling
Class Method Summary collapse
- .delete(uuid, key) ⇒ Object
- .index(uuid) ⇒ Object
- .show(uuid, key) ⇒ Object
- .update(uuid, key, value) ⇒ Object
Class Method Details
.delete(uuid, key) ⇒ Object
24 25 26 |
# File 'lib/uploadcare/entity/file_metadata.rb', line 24 def delete(uuid, key) ::Uploadcare::Client::FileMetadataClient.new.delete(uuid, key).success || '200 OK' end |
.index(uuid) ⇒ Object
12 13 14 |
# File 'lib/uploadcare/entity/file_metadata.rb', line 12 def index(uuid) ::Uploadcare::Client::FileMetadataClient.new.index(uuid).success end |
.show(uuid, key) ⇒ Object
16 17 18 |
# File 'lib/uploadcare/entity/file_metadata.rb', line 16 def show(uuid, key) ::Uploadcare::Client::FileMetadataClient.new.show(uuid, key).success end |
.update(uuid, key, value) ⇒ Object
20 21 22 |
# File 'lib/uploadcare/entity/file_metadata.rb', line 20 def update(uuid, key, value) ::Uploadcare::Client::FileMetadataClient.new.update(uuid, key, value).success end |