Class: Ipfs::Request

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

Direct Known Subclasses

BasicRequest, FileUploadRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, verb) ⇒ Request

Returns a new instance of Request.



5
6
7
8
# File 'lib/ruby-ipfs-http-client/request/request.rb', line 5

def initialize(path, verb)
  @path = path
  @verb = verb
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/ruby-ipfs-http-client/request/request.rb', line 3

def path
  @path
end

#verbObject (readonly)

Returns the value of attribute verb.



3
4
5
# File 'lib/ruby-ipfs-http-client/request/request.rb', line 3

def verb
  @verb
end

Instance Method Details

#optionsObject



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

def options
  {}
end