Class: Jahuty::Request::Base
- Inherits:
-
Object
- Object
- Jahuty::Request::Base
- Defined in:
- lib/jahuty/request/base.rb
Overview
Provides common logic for all requests.
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#params ⇒ Object
Returns the value of attribute params.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(method:, path:, params: {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(method:, path:, params: {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 |
# File 'lib/jahuty/request/base.rb', line 9 def initialize(method:, path:, params: {}) @method = method @path = path @params = params end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
7 8 9 |
# File 'lib/jahuty/request/base.rb', line 7 def method @method end |
#params ⇒ Object
Returns the value of attribute params.
7 8 9 |
# File 'lib/jahuty/request/base.rb', line 7 def params @params end |
#path ⇒ Object
Returns the value of attribute path.
7 8 9 |
# File 'lib/jahuty/request/base.rb', line 7 def path @path end |