class Ipfs::Command::Ls

Constants

PATH

Public Class Methods

build_request(multihash) click to toggle source
# File lib/ruby-ipfs-http-client/api/files/ls.rb, line 6
def self.build_request(multihash)
  Command.build_request(PATH, multihash: Ipfs::Multihash.new(multihash))
end
parse_response(response) click to toggle source
# File lib/ruby-ipfs-http-client/api/files/ls.rb, line 10
def self.parse_response(response)
  JSON.parse(response.body)['Objects'][0]['Links']
end