Module: CoinsPaid::API::Transport
Instance Method Summary collapse
Instance Method Details
#post(path, params = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/coins_paid/api/transport.rb', line 8 def post(path, params = {}) post_request path, params.to_json rescue Faraday::ParsingError => e raise ConnectionError, e.response.body rescue Faraday::Error => e raise ConnectionError, e end |