Class: Swgr2rb::ConductorSender

Inherits:
Object
  • Object
show all
Defined in:
lib/request_sender/conductor_sender.rb

Overview

ConductorSender uses HTTParty to send API requests with given properties.

Class Method Summary collapse

Class Method Details

.send_request(request) ⇒ Object



11
12
13
14
15
16
# File 'lib/request_sender/conductor_sender.rb', line 11

def send_request(request)
  response = send("send_#{request.type}_request",
                  request)

  Response.new(response)
end