class FutureWebItem

Public Class Methods

new(**kwargs) click to toggle source
Calls superclass method
# File lib/we_transfer_client/future_web_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_web_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: 'web_content',
    local_identifier: local_identifier,
    url: url,
    meta: {
      title: title
    }
  }
end