Class: Ipfs::Command::Ls
- Inherits:
-
Object
- Object
- Ipfs::Command::Ls
- Defined in:
- lib/ruby-ipfs-http-client/api/files/ls.rb
Constant Summary collapse
- PATH =
'/ls'
Class Method Summary collapse
Class Method Details
.build_request(multihash) ⇒ Object
6 7 8 |
# 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) ⇒ Object
10 11 12 |
# 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 |