Class: Ipfs::Command::Add

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-ipfs-http-client/api/files/add.rb

Constant Summary collapse

PATH =
'/add'

Class Method Summary collapse

Class Method Details

.build_request(filepath) ⇒ Object



6
7
8
# File 'lib/ruby-ipfs-http-client/api/files/add.rb', line 6

def self.build_request(filepath)
  Command.build_request(PATH, filepath: filepath)
end

.parse_response(response) ⇒ Object



10
11
12
# File 'lib/ruby-ipfs-http-client/api/files/add.rb', line 10

def self.parse_response(response)
  JSON.parse response
end