Sha256: ab7aa4d9dd6b959eba748f7da768119201550faf5a990093ca0b9b5f534fd8c0
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
module MotionYak module Request def self.get(url) BW::HTTP.get(url) do |response| json = BW::JSON.parse(response.body.to_str) return json end end def self.put(url, data) BW::HTTP.put(url, {payload: data}) do |response| json = BW::JSON.parse(response.body.to_str) return json end end def self.post(url, data) BW::HTTP.post(url, {payload: data}) do |response| json = BW::JSON.parse(response.body.to_str) return json end end def self.delete(url) BW::HTTP.delete(url) do |response| json = BW::JSON.parse(response.body.to_str) return json end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion_yak-0.0.5 | lib/motion_yak/request.rb |