Class: EZAPIClient::BaseRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/ezapi_client/requests/base_request.rb

Instance Method Summary collapse

Instance Method Details

#callObject



13
14
15
16
17
18
# File 'lib/ezapi_client/requests/base_request.rb', line 13

def call
  HTTParty.post(endpoint, {
    headers: { 'Content-Type' => "application/json" },
    body: body.to_json,
  })
end