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

Version Path
hypernova-2.0.0 lib/hypernova/faraday_request.rb
hypernova-1.4.0 lib/hypernova/faraday_request.rb
hypernova-1.3.0 lib/hypernova/faraday_request.rb
hypernova-1.2.0 lib/hypernova/faraday_request.rb
hypernova-1.1.0 lib/hypernova/faraday_request.rb
hypernova-1.0.3 lib/hypernova/faraday_request.rb
hypernova-1.0.2 lib/hypernova/faraday_request.rb
hypernova-1.0.1 lib/hypernova/faraday_request.rb
hypernova-1.0.0 lib/hypernova/faraday_request.rb