Sha256: 79f7dc021254317de6902f5f259ec2fea80cf4c6b7a15213942e323b18029414
Contents?: true
Size: 456 Bytes
Versions: 5
Compression:
Stored size: 456 Bytes
Contents
class FutureFileItem < Ks.strict(:name, :io, :local_identifier) def initialize(**kwargs) super(local_identifier: SecureRandom.uuid, **kwargs) end def to_item_request_params # Ideally the content identifier should stay the same throughout multiple # calls if the file contents doesn't change. { content_identifier: 'file', local_identifier: local_identifier, filename: name, filesize: io.size, } end end
Version data entries
5 entries across 5 versions & 1 rubygems