Sha256: da876cc83a750d3ac745b84c5c80695db25149bedaf98d3b4cba5407f307d6d9
Contents?: true
Size: 524 Bytes
Versions: 3
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true module RubyLokaliseApi module OAuth2 module Request include RubyLokaliseApi::BaseRequest include RubyLokaliseApi::OAuth2::Connection def post(path, params = {}) respond_with connection.post(prepare(path), custom_dump(params)) end private def respond_with(response) body = custom_load response.body status = response.status raise_on_error! status, body body end end end end
Version data entries
3 entries across 3 versions & 1 rubygems