Class: Ipfs::Commands::Ls

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

Class Method Summary collapse

Methods inherited from Base

parse, request

Class Method Details

.call(client, node) ⇒ Object



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

def self.call(client, node)
  response = request(client, "/ls?arg=#{node}")
  parse(response.body)
end