Class: Jahuty::Request::Factory

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

Overview

Instantiates a request from an action.

Instance Method Summary collapse

Instance Method Details

#call(action) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/jahuty/request/factory.rb', line 7

def call(action)
  Base.new(
    method: 'get',
    path: path(action),
    params: action.params
  )
end