class Ipfs::BasicRequest

Public Class Methods

new(path, **arguments) click to toggle source
Calls superclass method
# File lib/ruby-ipfs-http-client/request/basic_request.rb, line 5
def initialize(path, **arguments)
  super(path, :get)

  @multihash = arguments[:multihash]
end

Public Instance Methods

options() click to toggle source
# File lib/ruby-ipfs-http-client/request/basic_request.rb, line 11
def options
  @multihash \
    ? { params: { arg: @multihash.raw } } \
    : {}
end