Sha256: f0db118300569b9ef221b6755b60d3df348b6d40200232fbabbe8f830b90e37c
Contents?: true
Size: 326 Bytes
Versions: 9
Compression:
Stored size: 326 Bytes
Contents
require "hypernova/faraday_connection" class Hypernova::FaradayRequest def self.post(payload) Hypernova::FaradayConnection.build.post do |request| request.url(Hypernova::BatchUrlBuilder.path) request.headers["Content-Type"] = "application/json" request.body = payload[:body].to_json end end end
Version data entries
9 entries across 9 versions & 1 rubygems