Class: Ipfs::Request
- Inherits:
-
Object
- Object
- Ipfs::Request
- Defined in:
- lib/ruby-ipfs-http-client/request/request.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#verb ⇒ Object
readonly
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(path, verb) ⇒ Request
constructor
A new instance of Request.
- #options ⇒ Object
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
#path ⇒ Object (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 |
#verb ⇒ Object (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
#options ⇒ Object
10 11 12 |
# File 'lib/ruby-ipfs-http-client/request/request.rb', line 10 def {} end |