Class: ApiClient

Inherits:
Object
  • Object
show all
Includes:
ActAsApiClient::BaseApiMethods
Defined in:
lib/act_as_api_client.rb

Class Method Summary collapse

Methods included from ActAsApiClient::BaseApiMethods

#create, #delete, #find, #find_by, #update, #where

Class Method Details

.act_as_api_client(**args) ⇒ Object



10
11
12
13
# File 'lib/act_as_api_client.rb', line 10

def act_as_api_client(**args)
  set_general_client(client_for: args.fetch(:for, nil))
  set_options(options: args.fetch(:with, {}))
end