Class: Ipfs::Command::Id

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

Constant Summary collapse

PATH =
'/id'

Class Method Summary collapse

Class Method Details

.build_requestObject



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

def self.build_request
  Command.build_request(PATH)
end

.parse_response(response) ⇒ Object



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

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