class FutureFileItem

Public Class Methods

new(**kwargs) click to toggle source
Calls superclass method
# File lib/we_transfer_client/future_file_item.rb, line 2
def initialize(**kwargs)
  super(local_identifier: SecureRandom.uuid, **kwargs)
end

Public Instance Methods

to_item_request_params() click to toggle source
# File lib/we_transfer_client/future_file_item.rb, line 6
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