Class: Jahuty::Request::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/jahuty/request/base.rb

Overview

Provides common logic for all requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#methodObject

Returns the value of attribute method.



7
8
9
# File 'lib/jahuty/request/base.rb', line 7

def method
  @method
end

#paramsObject

Returns the value of attribute params.



7
8
9
# File 'lib/jahuty/request/base.rb', line 7

def params
  @params
end

#pathObject

Returns the value of attribute path.



7
8
9
# File 'lib/jahuty/request/base.rb', line 7

def path
  @path
end