Sha256: be24c31a7c33c4ee4adc9be0ce7a00d4e6a628eac0daba630e5b2198e635a99e
Contents?: true
Size: 383 Bytes
Versions: 1
Compression:
Stored size: 383 Bytes
Contents
module Economic module Orders class DraftsRepo < Economic::Orders::Repo def self.send(model) url = '' url << URL url << 'orders' url << '/drafts' response = RestClient.post(url, model.to_h.to_json, headers) do |response, _request, _result| response end test_response(response) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
economic-rest-0.2.0 | lib/economic/orders/drafts_repo.rb |