Class: Ipfs::Commands::PinRm

Inherits:
Base
  • Object
show all
Defined in:
lib/ipfs-http-client-rb/commands/pin_rm.rb

Class Method Summary collapse

Methods inherited from Base

parse, request

Class Method Details

.call(client, node, recursive: false) ⇒ Object



6
7
8
9
# File 'lib/ipfs-http-client-rb/commands/pin_rm.rb', line 6

def self.call(client, node, recursive: false)
  response = request(client, "/pin/rm?arg=#{node}&recursive=#{recursive}")
  parse(response.body)
end