Class: Telesign::ApiRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/telesign/api_request.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.request_method(method = nil) ⇒ Object



9
10
11
12
# File 'lib/telesign/api_request.rb', line 9

def self.request_method(method = nil)
  @request_method ||= method
  @request_method
end

Instance Method Details

#callObject



14
15
16
# File 'lib/telesign/api_request.rb', line 14

def call
  driver.send(self.class.request_method, self)
end

#driverObject



18
19
20
# File 'lib/telesign/api_request.rb', line 18

def driver
  Telesign::API::TelesignAPISoap.new
end