Sha256: 84956268b592a6a364bfef8b4ac9640a6c0b2bb473c856f27774e9bc72d56cba
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
module Economic module Orders class SentRepo < Economic::Orders::Repo def self.send(model) url = '' url << URL url << 'orders' url << '/sent' 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/sent_repo.rb |