Class: Ipfs::Command::Id

Inherits:
Object
  • Object
show all
Defined in:
lib/api/generic/id.rb

Constant Summary collapse

PATH =
'/id'

Class Method Summary collapse

Class Method Details

.build_requestObject



6
7
8
9
10
11
# File 'lib/api/generic/id.rb', line 6

def self.build_request
  {
    verb: :post,
    path: PATH
  }
end

.parse_response(response) ⇒ Object



13
14
15
# File 'lib/api/generic/id.rb', line 13

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