Sha256: be36da280a07fb9f0963f2dac5b9716834abff7cbb8a4fe5164c286747acce7b
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 Bytes
Contents
module Falconz module REST module POST def post_request(path, json: false, **options) response = HTTParty.post(url + path, headers: header, body: options) if response.success? return response.body if json return response else binding.pry raise response.to_h end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
falconz-1.0.1 | lib/falconz/rest/post.rb |
falconz-1.0.0 | lib/falconz/rest/post.rb |