Class: Ipfs::BasicRequest
- Defined in:
- lib/ruby-ipfs-http-client/request/basic_request.rb
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(path, **arguments) ⇒ BasicRequest
constructor
A new instance of BasicRequest.
- #options ⇒ Object
Constructor Details
#initialize(path, **arguments) ⇒ BasicRequest
Returns a new instance of BasicRequest.
5 6 7 8 9 |
# File 'lib/ruby-ipfs-http-client/request/basic_request.rb', line 5 def initialize(path, **arguments) super(path, :get) @multihash = arguments[:multihash] end |
Instance Method Details
#options ⇒ Object
11 12 13 14 15 |
# File 'lib/ruby-ipfs-http-client/request/basic_request.rb', line 11 def @multihash \ ? { params: { arg: @multihash.raw } } \ : {} end |