Class: Ipfs::Command::Version

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

Constant Summary collapse

PATH =
'/version'

Class Method Summary collapse

Class Method Details

.build_requestObject



6
7
8
# File 'lib/ruby-ipfs-http-client/api/generic/version.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/version.rb', line 10

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