class Ipfs::Commands::Add
Public Class Methods
call(client, file)
click to toggle source
# File lib/ipfs-http-client-rb/commands/add.rb, line 6 def self.call(client, file) response = request(client, "/add", {form: {file: HTTP::FormData::File.new(file)}}) parse(response.body) end