Module: ArrowPayments::Connection
- Included in:
- Client
- Defined in:
- lib/arrow_payments/connection.rb
Constant Summary collapse
- API_PRODUCTION =
'https://gateway.arrowpayments.com'
- API_SANDBOX =
'http://demo.arrowpayments.com'
- CONNECTION_OPTIONS =
{ :timeout => 10, :open_timeout => 10 }
Instance Method Summary collapse
- #get(path, params = {}, raw = false) ⇒ Object
- #post(path, params = {}, raw = false) ⇒ Object
- #post_to_url(url, params) ⇒ Object
Instance Method Details
#get(path, params = {}, raw = false) ⇒ Object
14 15 16 |
# File 'lib/arrow_payments/connection.rb', line 14 def get(path, params={}, raw=false) request(:get, path, params, raw) end |
#post(path, params = {}, raw = false) ⇒ Object
18 19 20 |
# File 'lib/arrow_payments/connection.rb', line 18 def post(path, params={}, raw=false) request(:post, path, params, raw) end |
#post_to_url(url, params) ⇒ Object
22 23 24 |
# File 'lib/arrow_payments/connection.rb', line 22 def post_to_url(url, params) Faraday.post(url, params) end |