さーっと調べて、具体例としてgemを使わずにParseに接続しているサンプルコードが見当たらなかったのでメモ。
require 'net/http'
require 'uri'
location = URI.parse('https://api.parse.com/1/classes/Xxxxxxx')
https = Net::HTTP.new(location.host, location.port)
https.use_ssl = true
req = Net::HTTP::Post.new(location.request_uri)
req['X-Parse-Application-Id'] = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
req['X-Parse-REST-API-Key'] = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
req['Content-Type'] = 'application/json'
data = {
content: 'test'
}.to_json
req.body = data
res = https.request(req)
puts "code -> #{res.code}"
puts "msg -> #{res.message}"
puts "body -> #{res.body}"