class Hypernova::HttpClientRequest
Public Class Methods
post(payload)
click to toggle source
# File lib/hypernova/http_client_request.rb, line 4 def self.post(payload) if is_client_requiring_1_argument? client.post(Hypernova::BatchUrlBuilder.path, payload) else client.post(payload) end end
Private Class Methods
client()
click to toggle source
# File lib/hypernova/http_client_request.rb, line 12 def self.client Hypernova.configuration.http_client end
is_client_requiring_1_argument?()
click to toggle source
# File lib/hypernova/http_client_request.rb, line 16 def self.is_client_requiring_1_argument? client.method(:post).arity == -2 end