Class: Uploadcare::Entity::FileMetadata

Inherits:
Entity
  • Object
show all
Defined in:
lib/uploadcare/entity/file_metadata.rb

Overview

This serializer is responsible for file metadata handling

Class Method Summary collapse

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