class Ipfs::FileUploadRequest

Public Class Methods

new(path, filepath) click to toggle source
Calls superclass method
# File lib/request/file_upload_request.rb, line 5
def initialize(path, filepath)
  super(path, :post)

  @filepath = filepath
end

Public Instance Methods

options() click to toggle source
# File lib/request/file_upload_request.rb, line 11
def options
  {
    form: {
      arg: HTTP::FormData::File.new(@filepath)
    }
  }
end