Sha256: c3d6e5da6b3df30efc90f2542d9ebe05f65fe07726f78e2fee34f62d65c9933b
Contents?: true
Size: 535 Bytes
Versions: 9
Compression:
Stored size: 535 Bytes
Contents
require "hypernova/faraday_request" require "hypernova/http_client_request" class Hypernova::Request def initialize(jobs) @jobs = jobs end def body post.body end private attr_reader :jobs def payload { :body => jobs, :idempotent => true, :request_format => :json, :response_format => :json, } end def post if Hypernova.configuration.http_client Hypernova::HttpClientRequest.post(payload) else Hypernova::FaradayRequest.post(payload) end end end
Version data entries
9 entries across 9 versions & 1 rubygems