Class: Ipfs::Commands::Ls

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

Class Method Summary collapse

Methods inherited from Base

http_get, parse

Class Method Details

.call(client, node) ⇒ Object



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

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